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

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

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
Index: Source/platform/weborigin/SecurityOrigin.h
diff --git a/Source/platform/weborigin/SecurityOrigin.h b/Source/platform/weborigin/SecurityOrigin.h
index 7112208474fcb51d3926ef00043a085e1fae7de8..525b25d59ead234edb1cd46663a30ed6443546e2 100644
--- a/Source/platform/weborigin/SecurityOrigin.h
+++ b/Source/platform/weborigin/SecurityOrigin.h
@@ -203,6 +203,17 @@ public:
static const String& urlWithUniqueSecurityOrigin();
+ // Transfer origin privileges from another security origin.
+ // The following privileges are currently copied over:
+ //
+ // - Grant universal access.
+ // - Grant loading of local resources.
+ // - Use path-based file:// origins.
+ //
+ // Note: It is dangerous to change the privileges of an origin
+ // at any other time than during initialization.
+ void transferPrivilegesFrom(const SecurityOrigin&);
+
private:
SecurityOrigin();
explicit SecurityOrigin(const KURL&);
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp ('k') | Source/platform/weborigin/SecurityOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698