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

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

Issue 2918403003: Move [Provisional]DataSource accessors/methods from WebFrame to WebLocalFrame. (Closed)
Patch Set: Added a TODO comment for user agent overrides - https://crbug.com/426555 Created 3 years, 6 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 /* 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 namespace blink { 51 namespace blink {
52 52
53 class Frame; 53 class Frame;
54 class OpenedFrameTracker; 54 class OpenedFrameTracker;
55 class Page; 55 class Page;
56 class Visitor; 56 class Visitor;
57 class WebAssociatedURLLoader; 57 class WebAssociatedURLLoader;
58 struct WebAssociatedURLLoaderOptions; 58 struct WebAssociatedURLLoaderOptions;
59 class WebDOMEvent; 59 class WebDOMEvent;
60 class WebDataSource;
61 class WebDocument; 60 class WebDocument;
62 class WebElement; 61 class WebElement;
63 class WebLocalFrame; 62 class WebLocalFrame;
64 class WebPerformance; 63 class WebPerformance;
65 class WebRemoteFrame; 64 class WebRemoteFrame;
66 class WebSecurityOrigin; 65 class WebSecurityOrigin;
67 class WebString; 66 class WebString;
68 class WebURL; 67 class WebURL;
69 class WebURLRequest; 68 class WebURLRequest;
70 class WebView; 69 class WebView;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // of a redirect. 299 // of a redirect.
301 virtual void ReloadWithOverrideURL(const WebURL& override_url, 300 virtual void ReloadWithOverrideURL(const WebURL& override_url,
302 WebFrameLoadType) = 0; 301 WebFrameLoadType) = 0;
303 302
304 // Load the given URL. 303 // Load the given URL.
305 virtual void LoadRequest(const WebURLRequest&) = 0; 304 virtual void LoadRequest(const WebURLRequest&) = 0;
306 305
307 // Stops any pending loads on the frame and its children. 306 // Stops any pending loads on the frame and its children.
308 virtual void StopLoading() = 0; 307 virtual void StopLoading() = 0;
309 308
310 // Returns the data source that is currently loading. May be null.
311 virtual WebDataSource* ProvisionalDataSource() const = 0;
312
313 // Returns the data source that is currently loaded.
314 virtual WebDataSource* DataSource() const = 0;
315
316 // View-source rendering mode. Set this before loading an URL to cause 309 // View-source rendering mode. Set this before loading an URL to cause
317 // it to be rendered in view-source mode. 310 // it to be rendered in view-source mode.
318 virtual void EnableViewSourceMode(bool) = 0; 311 virtual void EnableViewSourceMode(bool) = 0;
319 virtual bool IsViewSourceModeEnabled() const = 0; 312 virtual bool IsViewSourceModeEnabled() const = 0;
320 313
321 // Sets the referrer for the given request to be the specified URL or 314 // Sets the referrer for the given request to be the specified URL or
322 // if that is null, then it sets the referrer to the referrer that the 315 // if that is null, then it sets the referrer to the referrer that the
323 // frame would use for subresources. NOTE: This method also filters 316 // frame would use for subresources. NOTE: This method also filters
324 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as 317 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as
325 // the referrer for a HTTP request). 318 // the referrer for a HTTP request).
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 WebFrame* first_child_; 440 WebFrame* first_child_;
448 WebFrame* last_child_; 441 WebFrame* last_child_;
449 442
450 WebFrame* opener_; 443 WebFrame* opener_;
451 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; 444 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_;
452 }; 445 };
453 446
454 } // namespace blink 447 } // namespace blink
455 448
456 #endif 449 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698