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

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: Rename transferPrivileges() to transferPrivilegesFrom() over security origins 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
« no previous file with comments | « Source/platform/weborigin/SecurityOrigin.h ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/weborigin/SecurityOrigin.cpp
diff --git a/Source/platform/weborigin/SecurityOrigin.cpp b/Source/platform/weborigin/SecurityOrigin.cpp
index d7fa491ac78a309157a4a887491d99396197f9cf..4c11b4110748af6511855f573c47bc9fa9d4bce2 100644
--- a/Source/platform/weborigin/SecurityOrigin.cpp
+++ b/Source/platform/weborigin/SecurityOrigin.cpp
@@ -531,4 +531,11 @@ const String& SecurityOrigin::urlWithUniqueSecurityOrigin()
return uniqueSecurityOriginURL;
}
+void SecurityOrigin::transferPrivilegesFrom(const SecurityOrigin& origin)
+{
+ m_universalAccess = origin.m_universalAccess;
+ m_canLoadLocalResources = origin.m_canLoadLocalResources;
+ m_enforceFilePathSeparation = origin.m_enforceFilePathSeparation;
+}
+
} // namespace blink
« no previous file with comments | « Source/platform/weborigin/SecurityOrigin.h ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698