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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index 3d452f434c421353e633943028ebe7f1a38275e1..effdfe6748abbc28b356d658234104510e17dcb1 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -10,6 +10,7 @@
#include "WebFrameLoadType.h"
#include "WebHistoryItem.h"
#include "public/platform/WebCachePolicy.h"
+#include "public/platform/WebURLError.h"
namespace blink {
@@ -123,6 +124,13 @@ class WebLocalFrame : public WebFrame {
WebHistoryLoadType = WebHistoryDifferentDocumentLoad,
bool isClientRedirect = false) = 0;
+ // Check if the frame's parent can render fallback content on load failure.
+ 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.
+
+ // Allow the embedders to report that a navigation they handle has failed. The
+ // frame's parent will display fallback content, if possible.
+ virtual void loadFailed(const WebURLError&) = 0;
+
// Navigation State -------------------------------------------------------
// Returns true if the current frame's load event has not completed.
« 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