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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebFrame_h 31 #ifndef WebFrame_h
32 #define WebFrame_h 32 #define WebFrame_h
33 33
34 #include "WebIconURL.h" 34 #include "WebIconURL.h"
35 #include "WebNode.h" 35 #include "WebNode.h"
36 #include "WebURLLoaderOptions.h"
37 #include "public/platform/WebCanvas.h" 36 #include "public/platform/WebCanvas.h"
38 #include "public/platform/WebInsecureRequestPolicy.h" 37 #include "public/platform/WebInsecureRequestPolicy.h"
39 #include "public/web/WebFrameLoadType.h" 38 #include "public/web/WebFrameLoadType.h"
40 #include "public/web/WebTreeScopeType.h" 39 #include "public/web/WebTreeScopeType.h"
41 #include <memory> 40 #include <memory>
42 41
43 struct NPObject; 42 struct NPObject;
44 43
45 namespace v8 { 44 namespace v8 {
46 class Context; 45 class Context;
47 class Function; 46 class Function;
48 class Object; 47 class Object;
49 class Value; 48 class Value;
50 template <class T> 49 template <class T>
51 class Local; 50 class Local;
52 } 51 }
53 52
54 namespace blink { 53 namespace blink {
55 54
56 class Frame; 55 class Frame;
57 class OpenedFrameTracker; 56 class OpenedFrameTracker;
58 class Visitor; 57 class Visitor;
58 class WebAssociatedURLLoader;
59 struct WebAssociatedURLLoaderOptions;
59 class WebDOMEvent; 60 class WebDOMEvent;
60 class WebData; 61 class WebData;
61 class WebDataSource; 62 class WebDataSource;
62 class WebDocument; 63 class WebDocument;
63 class WebElement; 64 class WebElement;
64 class WebFrameImplBase; 65 class WebFrameImplBase;
65 class WebLayer; 66 class WebLayer;
66 class WebLocalFrame; 67 class WebLocalFrame;
67 class WebPerformance; 68 class WebPerformance;
68 class WebRemoteFrame; 69 class WebRemoteFrame;
69 class WebSecurityOrigin; 70 class WebSecurityOrigin;
70 class WebSharedWorkerRepositoryClient; 71 class WebSharedWorkerRepositoryClient;
71 class WebString; 72 class WebString;
72 class WebURL; 73 class WebURL;
73 class WebURLLoader;
74 class WebURLRequest; 74 class WebURLRequest;
75 class WebView; 75 class WebView;
76 enum class WebSandboxFlags; 76 enum class WebSandboxFlags;
77 struct WebConsoleMessage; 77 struct WebConsoleMessage;
78 struct WebFrameOwnerProperties; 78 struct WebFrameOwnerProperties;
79 struct WebPrintParams; 79 struct WebPrintParams;
80 struct WebRect; 80 struct WebRect;
81 struct WebScriptSource; 81 struct WebScriptSource;
82 struct WebSize; 82 struct WebSize;
83 83
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as 374 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as
375 // the referrer for a HTTP request). 375 // the referrer for a HTTP request).
376 virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) = 0; 376 virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) = 0;
377 377
378 // Called to associate the WebURLRequest with this frame. The request 378 // Called to associate the WebURLRequest with this frame. The request
379 // will be modified to inherit parameters that allow it to be loaded. 379 // will be modified to inherit parameters that allow it to be loaded.
380 // This method ends up triggering WebFrameClient::willSendRequest. 380 // This method ends up triggering WebFrameClient::willSendRequest.
381 // DEPRECATED: Please use createAssociatedURLLoader instead. 381 // DEPRECATED: Please use createAssociatedURLLoader instead.
382 virtual void dispatchWillSendRequest(WebURLRequest&) = 0; 382 virtual void dispatchWillSendRequest(WebURLRequest&) = 0;
383 383
384 // Returns a WebURLLoader that is associated with this frame. The loader 384 // Returns an AssociatedURLLoader that is associated with this frame. The
385 // will, for example, be cancelled when WebFrame::stopLoading is called. 385 // loader will, for example, be cancelled when WebFrame::stopLoading is
386 // called.
387 //
386 // FIXME: stopLoading does not yet cancel an associated loader!! 388 // FIXME: stopLoading does not yet cancel an associated loader!!
387 virtual WebURLLoader* createAssociatedURLLoader( 389 virtual WebAssociatedURLLoader* createAssociatedURLLoader(
388 const WebURLLoaderOptions& = WebURLLoaderOptions()) = 0; 390 const WebAssociatedURLLoaderOptions&) = 0;
389 391
390 // Returns the number of registered unload listeners. 392 // Returns the number of registered unload listeners.
391 virtual unsigned unloadListenerCount() const = 0; 393 virtual unsigned unloadListenerCount() const = 0;
392 394
393 // Will return true if between didStartLoading and didStopLoading 395 // Will return true if between didStartLoading and didStopLoading
394 // notifications. 396 // notifications.
395 virtual bool isLoading() const; 397 virtual bool isLoading() const;
396 398
397 // Printing ------------------------------------------------------------ 399 // Printing ------------------------------------------------------------
398 400
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 WebFrame* m_firstChild; 510 WebFrame* m_firstChild;
509 WebFrame* m_lastChild; 511 WebFrame* m_lastChild;
510 512
511 WebFrame* m_opener; 513 WebFrame* m_opener;
512 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; 514 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker;
513 }; 515 };
514 516
515 } // namespace blink 517 } // namespace blink
516 518
517 #endif 519 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h ('k') | third_party/WebKit/public/web/WebURLLoaderOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698