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

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

Issue 2439903003: PlzNavigate: Allow frames to fallback to alternative content. (Closed)
Patch Set: Two more test are fixed by this CL. 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 // 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"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const WebString& mimeType, 116 const WebString& mimeType,
117 const WebString& textEncoding, 117 const WebString& textEncoding,
118 const WebURL& baseURL, 118 const WebURL& baseURL,
119 const WebURL& unreachableURL = WebURL(), 119 const WebURL& unreachableURL = WebURL(),
120 bool replace = false, 120 bool replace = false,
121 WebFrameLoadType = WebFrameLoadType::Standard, 121 WebFrameLoadType = WebFrameLoadType::Standard,
122 const WebHistoryItem& = WebHistoryItem(), 122 const WebHistoryItem& = WebHistoryItem(),
123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, 123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad,
124 bool isClientRedirect = false) = 0; 124 bool isClientRedirect = false) = 0;
125 125
126 // Check if the frame's parent can render fallback content on load failure.
127 virtual bool canRenderFallbackContent() const = 0;
128
129 // Allow the embedders to report that a navigation they handle has failed. The
130 // frame's parent will display fallback content, if possible.
131 virtual void loadFailed() = 0;
132
126 // Navigation State ------------------------------------------------------- 133 // Navigation State -------------------------------------------------------
127 134
128 // Returns true if the current frame's load event has not completed. 135 // Returns true if the current frame's load event has not completed.
129 virtual bool isLoading() const = 0; 136 virtual bool isLoading() const = 0;
130 137
131 // Returns true if the current frame is detaching/detached. crbug.com/654654 138 // Returns true if the current frame is detaching/detached. crbug.com/654654
132 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() 139 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873()
133 const = 0; 140 const = 0;
134 141
135 // Returns true if there is a pending redirect or location change 142 // 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. 468 // to call these on a WebLocalFrame.
462 bool isWebLocalFrame() const override = 0; 469 bool isWebLocalFrame() const override = 0;
463 WebLocalFrame* toWebLocalFrame() override = 0; 470 WebLocalFrame* toWebLocalFrame() override = 0;
464 bool isWebRemoteFrame() const override = 0; 471 bool isWebRemoteFrame() const override = 0;
465 WebRemoteFrame* toWebRemoteFrame() override = 0; 472 WebRemoteFrame* toWebRemoteFrame() override = 0;
466 }; 473 };
467 474
468 } // namespace blink 475 } // namespace blink
469 476
470 #endif // WebLocalFrame_h 477 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698