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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.h

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebRemoteFrameImpl assert Created 4 years, 9 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/core/dom/SecurityContext.h
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.h b/third_party/WebKit/Source/core/dom/SecurityContext.h
index 7c7143c58687bea460085b721ae819d3a6205e03..e183dab1c09318f66839dce3860e39eafd1f1279 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.h
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.h
@@ -68,7 +68,7 @@ public:
SandboxFlags getSandboxFlags() const { return m_sandboxFlags; }
bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; }
- void enforceSandboxFlags(SandboxFlags mask);
+ virtual void enforceSandboxFlags(SandboxFlags mask);
void setAddressSpace(WebURLRequest::AddressSpace space) { m_addressSpace = space; }
WebURLRequest::AddressSpace addressSpace() const { return m_addressSpace; }
@@ -93,6 +93,8 @@ protected:
void setContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy>);
+ void applySandboxFlags(SandboxFlags mask);
+
private:
RefPtr<SecurityOrigin> m_securityOrigin;
RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy;

Powered by Google App Engine
This is Rietveld 408576698