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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.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
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include <set> 8 #include <set>
9 #include "WebCompositionUnderline.h" 9 #include "WebCompositionUnderline.h"
10 #include "WebFrame.h" 10 #include "WebFrame.h"
11 #include "WebFrameLoadType.h" 11 #include "WebFrameLoadType.h"
12 #include "WebHistoryItem.h" 12 #include "WebHistoryItem.h"
13 #include "public/platform/WebCachePolicy.h" 13 #include "public/platform/WebCachePolicy.h"
14 #include "public/platform/WebURLError.h" 14 #include "public/platform/WebURLError.h"
15 #include "public/platform/WebURLRequest.h" 15 #include "public/platform/WebURLRequest.h"
16 #include "public/platform/site_engagement.mojom-shared.h" 16 #include "public/platform/site_engagement.mojom-shared.h"
17 17
18 namespace base { 18 namespace base {
19 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
20 } 20 }
21 21
22 namespace blink { 22 namespace blink {
23 23
24 class InterfaceProvider; 24 class InterfaceProvider;
25 class InterfaceRegistry; 25 class InterfaceRegistry;
26 class WebAutofillClient; 26 class WebAutofillClient;
27 class WebContentSettingsClient; 27 class WebContentSettingsClient;
28 class WebData; 28 class WebData;
29 class WebDataSource;
29 class WebDevToolsAgent; 30 class WebDevToolsAgent;
30 class WebDevToolsAgentClient; 31 class WebDevToolsAgentClient;
31 class WebDoubleSize; 32 class WebDoubleSize;
32 class WebFrameClient; 33 class WebFrameClient;
33 class WebFrameWidget; 34 class WebFrameWidget;
34 class WebInputMethodController; 35 class WebInputMethodController;
35 class WebRange; 36 class WebRange;
36 class WebScriptExecutionCallback; 37 class WebScriptExecutionCallback;
37 class WebSharedWorkerRepositoryClient; 38 class WebSharedWorkerRepositoryClient;
38 class WebTextCheckClient; 39 class WebTextCheckClient;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const WebString& mime_type, 172 const WebString& mime_type,
172 const WebString& text_encoding, 173 const WebString& text_encoding,
173 const WebURL& base_url, 174 const WebURL& base_url,
174 const WebURL& unreachable_url = WebURL(), 175 const WebURL& unreachable_url = WebURL(),
175 bool replace = false, 176 bool replace = false,
176 WebFrameLoadType = WebFrameLoadType::kStandard, 177 WebFrameLoadType = WebFrameLoadType::kStandard,
177 const WebHistoryItem& = WebHistoryItem(), 178 const WebHistoryItem& = WebHistoryItem(),
178 WebHistoryLoadType = kWebHistoryDifferentDocumentLoad, 179 WebHistoryLoadType = kWebHistoryDifferentDocumentLoad,
179 bool is_client_redirect = false) = 0; 180 bool is_client_redirect = false) = 0;
180 181
182 // Returns the data source that is currently loading. May be null.
183 virtual WebDataSource* ProvisionalDataSource() const = 0;
184
185 // Returns the data source that is currently loaded.
186 virtual WebDataSource* DataSource() const = 0;
187
181 enum FallbackContentResult { 188 enum FallbackContentResult {
182 // An error page should be shown instead of fallback. 189 // An error page should be shown instead of fallback.
183 NoFallbackContent, 190 NoFallbackContent,
184 // Something else committed, no fallback content or error page needed. 191 // Something else committed, no fallback content or error page needed.
185 NoLoadInProgress, 192 NoLoadInProgress,
186 // Fallback content rendered, no error page needed. 193 // Fallback content rendered, no error page needed.
187 FallbackRendered 194 FallbackRendered
188 }; 195 };
189 // On load failure, attempts to make frame's parent render fallback content. 196 // On load failure, attempts to make frame's parent render fallback content.
190 virtual FallbackContentResult MaybeRenderFallbackContent( 197 virtual FallbackContentResult MaybeRenderFallbackContent(
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 // to call these on a WebLocalFrame. 604 // to call these on a WebLocalFrame.
598 bool IsWebLocalFrame() const override = 0; 605 bool IsWebLocalFrame() const override = 0;
599 WebLocalFrame* ToWebLocalFrame() override = 0; 606 WebLocalFrame* ToWebLocalFrame() override = 0;
600 bool IsWebRemoteFrame() const override = 0; 607 bool IsWebRemoteFrame() const override = 0;
601 WebRemoteFrame* ToWebRemoteFrame() override = 0; 608 WebRemoteFrame* ToWebRemoteFrame() override = 0;
602 }; 609 };
603 610
604 } // namespace blink 611 } // namespace blink
605 612
606 #endif // WebLocalFrame_h 613 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698