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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1197383002: Add WebLocalFrame::effectiveSandboxFlags() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index b473d37d85bdde3c91ce85e52c3a209f52027059..e4e21e5f38fbfce797becce09acd7643582395c1 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -2183,4 +2183,11 @@ WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
return m_frameWidget;
}
+WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const
+{
+ if (!frame())
+ return WebSandboxFlags::None;
+ return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags());
+}
+
} // namespace blink
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698