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

Unified Diff: content/public/common/content_client.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: content/public/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index 13f0d5c57dc0b986c9c016e7404b6c71a5345440..d1523b78c88dd8bb8bcbc53676d06002a7d02a38 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -134,6 +134,12 @@ class CONTENT_EXPORT ContentClient {
int* sandbox_profile_resource_id) const;
#endif
+ // Returns true if the origin is trustworthy: that is, if its contents can be
+ // said to have been transferred to the browser in a way that a network
+ // attacker cannot tamper with or observe.
+ // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
+ virtual bool IsOriginTrustWorthy(const GURL& url) const;
+
private:
friend class ContentClientInitializer; // To set these pointers.
friend class InternalTestInitializer;

Powered by Google App Engine
This is Rietveld 408576698