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

Unified Diff: Source/platform/weborigin/SecurityOrigin.cpp

Issue 594803002: Transfer SecurityOrigin overrides to Workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests Created 6 years, 3 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: Source/platform/weborigin/SecurityOrigin.cpp
diff --git a/Source/platform/weborigin/SecurityOrigin.cpp b/Source/platform/weborigin/SecurityOrigin.cpp
index d7fa491ac78a309157a4a887491d99396197f9cf..e5e26f835dee83cdbf8a80f9996d4ae096584639 100644
--- a/Source/platform/weborigin/SecurityOrigin.cpp
+++ b/Source/platform/weborigin/SecurityOrigin.cpp
@@ -531,4 +531,17 @@ const String& SecurityOrigin::urlWithUniqueSecurityOrigin()
return uniqueSecurityOriginURL;
}
+SecurityOrigin::PolicyOverrides SecurityOrigin::policyOverrides() const
+{
+ return PolicyOverrides(m_universalAccess, m_enforceFilePathSeparation);
+}
+
+void SecurityOrigin::applyPolicyOverrides(const SecurityOrigin::PolicyOverrides& policyOverrides)
+{
+ // Individual overrides does not have does-not-apply value;
Mike West 2014/09/26 11:29:10 Nit: I think you can drop this clause: "The policy
+ // the policy will be transferred/applied in its entirety.
+ m_universalAccess = policyOverrides.grantUniversalAccess();
+ m_enforceFilePathSeparation = policyOverrides.enforceFilePathSeparation();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698