Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / AssociatedURLLoader.h
index 84bba56..c815895 100644 (file)
 #include "wtf/OwnPtr.h"
 #include "wtf/RefPtr.h"
 
-namespace WebCore { class DocumentThreadableLoader; }
-
 namespace blink {
 
+class DocumentThreadableLoader;
 class WebLocalFrameImpl;
 
 // This class is used to implement WebFrame::createAssociatedURLLoader.
-class AssociatedURLLoader FINAL : public WebURLLoader {
+class AssociatedURLLoader final : public WebURLLoader {
     WTF_MAKE_NONCOPYABLE(AssociatedURLLoader);
 public:
-    AssociatedURLLoader(PassRefPtr<WebLocalFrameImpl>, const WebURLLoaderOptions&);
+    AssociatedURLLoader(PassRefPtrWillBeRawPtr<WebLocalFrameImpl>, const WebURLLoaderOptions&);
     ~AssociatedURLLoader();
 
     // WebURLLoader methods:
-    virtual void loadSynchronously(const WebURLRequest&, WebURLResponse&, WebURLError&, WebData&) OVERRIDE;
-    virtual void loadAsynchronously(const WebURLRequest&, WebURLLoaderClient*) OVERRIDE;
-    virtual void cancel() OVERRIDE;
-    virtual void setDefersLoading(bool) OVERRIDE;
+    virtual void loadSynchronously(const WebURLRequest&, WebURLResponse&, WebURLError&, WebData&) override;
+    virtual void loadAsynchronously(const WebURLRequest&, WebURLLoaderClient*) override;
+    virtual void cancel() override;
+    virtual void setDefersLoading(bool) override;
 
 private:
 
     class ClientAdapter;
 
-    RefPtr<WebLocalFrameImpl> m_frameImpl;
+    RefPtrWillBePersistent<WebLocalFrameImpl> m_frameImpl;
     WebURLLoaderOptions m_options;
     WebURLLoaderClient* m_client;
     OwnPtr<ClientAdapter> m_clientAdapter;
-    RefPtr<WebCore::DocumentThreadableLoader> m_loader;
+    RefPtr<DocumentThreadableLoader> m_loader;
 };
 
 } // namespace blink