Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/Source/core/exported/WebAssociatedURLLoaderImpl.h

Issue 2831833002: Move WebAssociatedURLLoaderImpl.* from web/ -> core/export/. (Closed)
Patch Set: Need to BLINK_EXPORT WebAssociatedURLLoader for compile to work on windows. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebAssociatedURLLoaderImpl_h 5 #ifndef WebAssociatedURLLoaderImpl_h
6 #define WebAssociatedURLLoaderImpl_h 6 #define WebAssociatedURLLoaderImpl_h
7 7
8 #include <memory> 8 #include <memory>
9 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
10 #include "platform/wtf/Noncopyable.h" 11 #include "platform/wtf/Noncopyable.h"
11 #include "platform/wtf/RefPtr.h" 12 #include "platform/wtf/RefPtr.h"
12 #include "public/web/WebAssociatedURLLoader.h" 13 #include "public/web/WebAssociatedURLLoader.h"
13 #include "public/web/WebAssociatedURLLoaderOptions.h" 14 #include "public/web/WebAssociatedURLLoaderOptions.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 class DocumentThreadableLoader; 18 class DocumentThreadableLoader;
18 class WebAssociatedURLLoaderClient; 19 class WebAssociatedURLLoaderClient;
19 class WebLocalFrameImpl; 20 class Document;
20 21
21 // This class is used to implement WebFrame::createAssociatedURLLoader. 22 // This class is used to implement WebFrame::createAssociatedURLLoader.
22 class WebAssociatedURLLoaderImpl final : public WebAssociatedURLLoader { 23 class CORE_EXPORT WebAssociatedURLLoaderImpl final
24 : public WebAssociatedURLLoader {
23 WTF_MAKE_NONCOPYABLE(WebAssociatedURLLoaderImpl); 25 WTF_MAKE_NONCOPYABLE(WebAssociatedURLLoaderImpl);
24 26
25 public: 27 public:
26 WebAssociatedURLLoaderImpl(WebLocalFrameImpl*, 28 WebAssociatedURLLoaderImpl(Document*, const WebAssociatedURLLoaderOptions&);
27 const WebAssociatedURLLoaderOptions&);
28 ~WebAssociatedURLLoaderImpl(); 29 ~WebAssociatedURLLoaderImpl();
29 30
30 void LoadAsynchronously(const WebURLRequest&, 31 void LoadAsynchronously(const WebURLRequest&,
31 WebAssociatedURLLoaderClient*) override; 32 WebAssociatedURLLoaderClient*) override;
32 void Cancel() override; 33 void Cancel() override;
33 void SetDefersLoading(bool) override; 34 void SetDefersLoading(bool) override;
34 void SetLoadingTaskRunner(blink::WebTaskRunner*) override; 35 void SetLoadingTaskRunner(blink::WebTaskRunner*) override;
35 36
36 // Called by |m_observer| to handle destruction of the Document associated 37 // Called by |m_observer| to handle destruction of the Document associated
37 // with the frame given to the constructor. 38 // with the frame given to the constructor.
(...skipping 24 matching lines...) Expand all
62 Persistent<DocumentThreadableLoader> loader_; 63 Persistent<DocumentThreadableLoader> loader_;
63 64
64 // A ContextLifecycleObserver for cancelling |m_loader| when the Document 65 // A ContextLifecycleObserver for cancelling |m_loader| when the Document
65 // is detached. 66 // is detached.
66 Persistent<Observer> observer_; 67 Persistent<Observer> observer_;
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698