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

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

Issue 2439903003: PlzNavigate: Allow frames to fallback to alternative content. (Closed)
Patch Set: Nit (+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
« 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const WebString& mimeType, 116 const WebString& mimeType,
116 const WebString& textEncoding, 117 const WebString& textEncoding,
117 const WebURL& baseURL, 118 const WebURL& baseURL,
118 const WebURL& unreachableURL = WebURL(), 119 const WebURL& unreachableURL = WebURL(),
119 bool replace = false, 120 bool replace = false,
120 WebFrameLoadType = WebFrameLoadType::Standard, 121 WebFrameLoadType = WebFrameLoadType::Standard,
121 const WebHistoryItem& = WebHistoryItem(), 122 const WebHistoryItem& = WebHistoryItem(),
122 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, 123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad,
123 bool isClientRedirect = false) = 0; 124 bool isClientRedirect = false) = 0;
124 125
126 // On load failure, attempts to make frame's parent rendering fallback content
127 // and stop this frame loading.
128 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0;
129
125 // Navigation State ------------------------------------------------------- 130 // Navigation State -------------------------------------------------------
126 131
127 // Returns true if the current frame's load event has not completed. 132 // Returns true if the current frame's load event has not completed.
128 virtual bool isLoading() const = 0; 133 virtual bool isLoading() const = 0;
129 134
130 // Returns true if the current frame is detaching/detached. crbug.com/654654 135 // Returns true if the current frame is detaching/detached. crbug.com/654654
131 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() 136 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873()
132 const = 0; 137 const = 0;
133 138
134 // Returns true if there is a pending redirect or location change 139 // Returns true if there is a pending redirect or location change
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // to call these on a WebLocalFrame. 455 // to call these on a WebLocalFrame.
451 bool isWebLocalFrame() const override = 0; 456 bool isWebLocalFrame() const override = 0;
452 WebLocalFrame* toWebLocalFrame() override = 0; 457 WebLocalFrame* toWebLocalFrame() override = 0;
453 bool isWebRemoteFrame() const override = 0; 458 bool isWebRemoteFrame() const override = 0;
454 WebRemoteFrame* toWebRemoteFrame() override = 0; 459 WebRemoteFrame* toWebRemoteFrame() override = 0;
455 }; 460 };
456 461
457 } // namespace blink 462 } // namespace blink
458 463
459 #endif // WebLocalFrame_h 464 #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