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

Unified Diff: content/common/url_schemes.h

Issue 1049533002: Add IsOriginSecure and GURL::SchemeUsesTLS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move it to content::, so we can call into net:: and blink::. Created 5 years, 9 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
Index: content/common/url_schemes.h
diff --git a/content/common/url_schemes.h b/content/common/url_schemes.h
index 571c660f217f6c95f2549977d35ac0b9a9bf4bcf..0be208219112c64a5aae50a04ee3a8d40705087f 100644
--- a/content/common/url_schemes.h
+++ b/content/common/url_schemes.h
@@ -7,6 +7,8 @@
#include "content/common/content_export.h"
+class GURL;
+
namespace content {
// Note: ContentMainRunner calls this method internally as part of main
@@ -21,6 +23,10 @@ namespace content {
// schemes by overriding the ContentClient::AddAdditionalSchemes method.
CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes);
+// Returns true if the origin is secure. See
+// https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
+CONTENT_EXPORT bool IsOriginSecure(const GURL& url);
+
} // namespace content
#endif // CONTENT_COMMON_URL_SCHEMES_H_

Powered by Google App Engine
This is Rietveld 408576698