| Index: third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
|
| diff --git a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
|
| index 559b177490193f43e87f92681d85ff6521a65f49..7f633057de5fcd98c5fb1c2146dcfb8c27b3da5e 100644
|
| --- a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
|
| @@ -67,6 +67,11 @@ WebSecurityOrigin WebSecurityOrigin::createUnique()
|
| return WebSecurityOrigin(SecurityOrigin::createUnique());
|
| }
|
|
|
| +WebSecurityOrigin WebSecurityOrigin::createUnique(bool isPotentiallyTrustworthy, bool shouldBypassSecureContextCheck)
|
| +{
|
| + return WebSecurityOrigin(SecurityOrigin::createUnique(isPotentiallyTrustworthy, shouldBypassSecureContextCheck));
|
| +}
|
| +
|
| void WebSecurityOrigin::reset()
|
| {
|
| assign(0);
|
| @@ -184,4 +189,16 @@ void WebSecurityOrigin::grantLoadLocalResources() const
|
| get()->grantLoadLocalResources();
|
| }
|
|
|
| +bool WebSecurityOrigin::isUniqueOriginPotentiallyTrustworthy() const
|
| +{
|
| + ASSERT(m_private);
|
| + return isUnique() && m_private->isPotentiallyTrustworthy();
|
| +}
|
| +
|
| +bool WebSecurityOrigin::shouldUniqueOriginBypassSecureContextCheck() const
|
| +{
|
| + ASSERT(m_private);
|
| + return isUnique() && m_private->bypassSecureContextCheck();
|
| +}
|
| +
|
| } // namespace blink
|
|
|