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

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

Issue 2439903003: PlzNavigate: Allow frames to fallback to alternative content. (Closed)
Patch Set: Using frameloader::loadFail. 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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('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 "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebFrame.h" 9 #include "WebFrame.h"
10 #include "WebFrameLoadType.h" 10 #include "WebFrameLoadType.h"
11 #include "WebHistoryItem.h" 11 #include "WebHistoryItem.h"
12 #include "public/platform/WebCachePolicy.h" 12 #include "public/platform/WebCachePolicy.h"
13 #include "public/platform/WebURLError.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class WebAutofillClient; 17 class WebAutofillClient;
17 class WebContentSettingsClient; 18 class WebContentSettingsClient;
18 class WebDevToolsAgent; 19 class WebDevToolsAgent;
19 class WebDevToolsAgentClient; 20 class WebDevToolsAgentClient;
20 class WebDoubleSize; 21 class WebDoubleSize;
21 class WebFrameClient; 22 class WebFrameClient;
22 class WebFrameWidget; 23 class WebFrameWidget;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const WebString& mimeType, 117 const WebString& mimeType,
117 const WebString& textEncoding, 118 const WebString& textEncoding,
118 const WebURL& baseURL, 119 const WebURL& baseURL,
119 const WebURL& unreachableURL = WebURL(), 120 const WebURL& unreachableURL = WebURL(),
120 bool replace = false, 121 bool replace = false,
121 WebFrameLoadType = WebFrameLoadType::Standard, 122 WebFrameLoadType = WebFrameLoadType::Standard,
122 const WebHistoryItem& = WebHistoryItem(), 123 const WebHistoryItem& = WebHistoryItem(),
123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, 124 WebHistoryLoadType = WebHistoryDifferentDocumentLoad,
124 bool isClientRedirect = false) = 0; 125 bool isClientRedirect = false) = 0;
125 126
127 // Check if the frame's parent can render fallback content on load failure.
128 virtual bool canRenderFallbackContent() const = 0;
Nate Chapin 2016/11/02 17:18:09 I don't really like having this on the public/ api
arthursonzogni 2016/11/03 15:10:42 Done.
129
130 // Allow the embedders to report that a navigation they handle has failed. The
131 // frame's parent will display fallback content, if possible.
132 virtual void loadFailed(const WebURLError&) = 0;
133
126 // Navigation State ------------------------------------------------------- 134 // Navigation State -------------------------------------------------------
127 135
128 // Returns true if the current frame's load event has not completed. 136 // Returns true if the current frame's load event has not completed.
129 virtual bool isLoading() const = 0; 137 virtual bool isLoading() const = 0;
130 138
131 // Returns true if the current frame is detaching/detached. crbug.com/654654 139 // Returns true if the current frame is detaching/detached. crbug.com/654654
132 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() 140 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873()
133 const = 0; 141 const = 0;
134 142
135 // Returns true if there is a pending redirect or location change 143 // Returns true if there is a pending redirect or location change
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // to call these on a WebLocalFrame. 469 // to call these on a WebLocalFrame.
462 bool isWebLocalFrame() const override = 0; 470 bool isWebLocalFrame() const override = 0;
463 WebLocalFrame* toWebLocalFrame() override = 0; 471 WebLocalFrame* toWebLocalFrame() override = 0;
464 bool isWebRemoteFrame() const override = 0; 472 bool isWebRemoteFrame() const override = 0;
465 WebRemoteFrame* toWebRemoteFrame() override = 0; 473 WebRemoteFrame* toWebRemoteFrame() override = 0;
466 }; 474 };
467 475
468 } // namespace blink 476 } // namespace blink
469 477
470 #endif // WebLocalFrame_h 478 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698