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

Unified Diff: public/web/WebSecurityOrigin.h

Issue 428643007: Add WebSecurityOrigin::CanAccessFeatureRequiringSecureOrigin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pass the updated string through the out-param to the caller (!). Created 6 years, 5 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
« no previous file with comments | « Source/web/WebSecurityOrigin.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/web/WebSecurityOrigin.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698