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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

Issue 2015003002: Disallow local/remote checks on subclasses of Frame, FrameOwner and DOMWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pure virtual Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/RemoteFrameOwner.h
diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
index 0ed31e0a7131c244b7d0a063aad5459c1ba10ea3..1c62850681d818f70af9a16b90afbf37552c8b72 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -25,8 +25,6 @@ public:
}
// FrameOwner overrides:
- bool isLocal() const override { return false; }
- bool isRemote() const override { return true; }
void setContentFrame(Frame&) override;
void clearContentFrame() override;
SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; }
@@ -49,6 +47,11 @@ public:
private:
RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&);
+ // Intentionally private to prevent redundant checks when the type is
+ // already HTMLFrameOwnerElement.
+ bool isLocal() const override { return false; }
+ bool isRemote() const override { return true; }
+
Member<Frame> m_frame;
SandboxFlags m_sandboxFlags;
ScrollbarMode m_scrolling;

Powered by Google App Engine
This is Rietveld 408576698