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&); |