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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOwner.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameOwner.h
diff --git a/third_party/WebKit/Source/core/frame/FrameOwner.h b/third_party/WebKit/Source/core/frame/FrameOwner.h
index 23f716a89ee317b4fab3298f9f39563e5d25a75a..d1d529286bb3475f545f0ac60f6b39bebf9b7613 100644
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h
@@ -35,6 +35,7 @@ class CORE_EXPORT FrameOwner : public GarbageCollectedMixin {
// On load failure, a frame can ask its owner to render fallback content
// which replaces the frame contents.
+ virtual bool canRenderFallbackContent() const = 0;
virtual void renderFallbackContent() = 0;
virtual ScrollbarMode scrollingMode() const = 0;
@@ -60,6 +61,7 @@ class CORE_EXPORT DummyFrameOwner
void clearContentFrame() override {}
SandboxFlags getSandboxFlags() const override { return SandboxNone; }
void dispatchLoad() override {}
+ bool canRenderFallbackContent() const override { return false; }
void renderFallbackContent() override {}
ScrollbarMode scrollingMode() const override { return ScrollbarAuto; }
int marginWidth() const override { return -1; }

Powered by Google App Engine
This is Rietveld 408576698