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

Unified Diff: public/web/WebSecurityPolicy.h

Issue 1082173003: Support whitelisting to handle insecure origins as trustworthy origins (blink) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: no lock (for now) 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
« no previous file with comments | « Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSecurityPolicy.h
diff --git a/public/web/WebSecurityPolicy.h b/public/web/WebSecurityPolicy.h
index f22998cce4e9a0300d8c1d03a7c723c2f7366c23..147ccfdd16742b19a28e1a58ab3ad18c110dfe60 100644
--- a/public/web/WebSecurityPolicy.h
+++ b/public/web/WebSecurityPolicy.h
@@ -36,6 +36,7 @@
namespace blink {
+class WebSecurityOrigin;
class WebString;
class WebURL;
@@ -100,6 +101,9 @@ public:
const WebString& destinationHost, bool allowDestinationSubdomains);
BLINK_EXPORT static void resetOriginAccessWhitelists();
+ // Support for whitelisting origins to treat them as trustworthy.
+ BLINK_EXPORT static void addOriginTrustworthyWhiteList(const WebSecurityOrigin&);
+
// Returns the referrer modified according to the referrer policy for a
// navigation to a given URL. If the referrer returned is empty, the
// referrer header should be omitted.
« no previous file with comments | « Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698