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

Unified Diff: chrome/common/origin_util.h

Issue 1072933006: Support whitelisting to handle insecure origins as trustworthy origins (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test, added IsOriginSecure plumbing etc Created 5 years, 8 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: chrome/common/origin_util.h
diff --git a/chrome/common/origin_util.h b/chrome/common/origin_util.h
index 2b8cd5e90d782061940ce60e555804fab7970167..58c02052f5bd35a29dfd697c4904265dbe1c4072 100644
--- a/chrome/common/origin_util.h
+++ b/chrome/common/origin_util.h
@@ -5,6 +5,8 @@
#ifndef CHROME_COMMON_ORIGIN_UTIL_H_
#define CHROME_COMMON_ORIGIN_UTIL_H_
+#include <set>
+
class GURL;
// Returns true if the origin is trustworthy: that is, if its contents can be
@@ -14,4 +16,11 @@ class GURL;
// See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
bool IsOriginSecure(const GURL& url);
+// Returns a set of whitelisted origins that are specified by command-line
+// options.
+const std::set<GURL>& GetWhiteListedSecureOrigins();
+
+// Clear whitelisted origins.
+void ClearWhiteListedSecureOrigins();
+
#endif // CHROME_COMMON_ORIGIN_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698