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

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: 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: public/web/WebSecurityPolicy.h
diff --git a/public/web/WebSecurityPolicy.h b/public/web/WebSecurityPolicy.h
index f22998cce4e9a0300d8c1d03a7c723c2f7366c23..9349bd71f800ab8ce7742ec34659adef4a73a52d 100644
--- a/public/web/WebSecurityPolicy.h
+++ b/public/web/WebSecurityPolicy.h
@@ -100,6 +100,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 WebURL& origin);
Mike West 2015/04/20 09:25:00 Why not pass in a WebSecurityOrigin?
kinuko 2015/04/20 15:43:18 Done.
+
// 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.
« Source/platform/weborigin/SecurityPolicyTest.cpp ('K') | « Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698