Index: public/web/WebSecurityOrigin.h |
diff --git a/public/web/WebSecurityOrigin.h b/public/web/WebSecurityOrigin.h |
index c4c0c0507023645010b02311e6fad3972922ce0d..868d096cec00407b0146514961f8e8ca15da34eb 100644 |
--- a/public/web/WebSecurityOrigin.h |
+++ b/public/web/WebSecurityOrigin.h |
@@ -83,6 +83,13 @@ public: |
// from a given security origin to receive contents from a given URL. |
BLINK_EXPORT bool canRequest(const WebURL&) const; |
+ // A "secure origin" as defined by [1] are those that load resources either |
+ // from the local machine (necessarily trusted) or over the network from a |
+ // cryptographically-authenticated server. |
+ // |
+ // [1] http://www.chromium.org/Home/chromium-security/security-faq#TOC-Which-origins-are-secure- |
+ bool canAccessFeatureRequiringSecureOrigin(WebString& errorMessage) const; |
+ |
// Returns a string representation of the WebSecurityOrigin. The empty |
// WebSecurityOrigin is represented by "null". The representation of a |
// non-empty WebSecurityOrigin resembles a standard URL. |