Chromium Code Reviews| Index: Source/platform/weborigin/SecurityOrigin.h |
| diff --git a/Source/platform/weborigin/SecurityOrigin.h b/Source/platform/weborigin/SecurityOrigin.h |
| index 7112208474fcb51d3926ef00043a085e1fae7de8..41eda7692ecdf796e862497941933f116c51a5b5 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 transferPrivileges(const SecurityOrigin&); |
|
Mike West
2014/09/29 07:37:22
I think something like `transferPrivilegesFrom()`
sof
2014/09/29 09:42:28
Yes, disambiguation by its name rather than having
|
| + |
| private: |
| SecurityOrigin(); |
| explicit SecurityOrigin(const KURL&); |