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

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

Issue 2439903003: PlzNavigate: Allow frames to fallback to alternative content. (Closed)
Patch Set: Created 4 years, 2 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 // 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 // Allow the embedders to report that a navigation they handle has failed. It
127 // permits the frame to display fallback content instead of an error frame.
128 virtual void didFailNavigation() = 0;
129
126 // Navigation State ------------------------------------------------------- 130 // Navigation State -------------------------------------------------------
127 131
128 // 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.
129 virtual bool isLoading() const = 0; 133 virtual bool isLoading() const = 0;
130 134
131 // 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
132 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() 136 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873()
133 const = 0; 137 const = 0;
134 138
135 // Returns true if there is a pending redirect or location change 139 // Returns true if there is a pending redirect or location change
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // to call these on a WebLocalFrame. 461 // to call these on a WebLocalFrame.
458 bool isWebLocalFrame() const override = 0; 462 bool isWebLocalFrame() const override = 0;
459 WebLocalFrame* toWebLocalFrame() override = 0; 463 WebLocalFrame* toWebLocalFrame() override = 0;
460 bool isWebRemoteFrame() const override = 0; 464 bool isWebRemoteFrame() const override = 0;
461 WebRemoteFrame* toWebRemoteFrame() override = 0; 465 WebRemoteFrame* toWebRemoteFrame() override = 0;
462 }; 466 };
463 467
464 } // namespace blink 468 } // namespace blink
465 469
466 #endif // WebLocalFrame_h 470 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698