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

Unified Diff: content/public/common/content_client.h

Issue 2623353002: Share schemes needed for mixed content checking between the browser and renderer. (Closed)
Patch Set: remove unused public methods Created 3 years, 11 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 | « content/common/url_schemes.cc ('k') | content/public/common/origin_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index 1974ba031a4c2a35dc29329790423752c77854fb..57a52faa3aed95f83c39b41fbda479579499799a 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -94,19 +94,21 @@ class CONTENT_EXPORT ContentClient {
// Gives the embedder a chance to register its own schemes early in the
// startup sequence.
- // For the secure schemes and origins that need to be considered trustworthy,
- // see https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
- // |service_workers_schemes| are additional schemes that should be allowed to
- // register service workers. Only secure and trustworthy schemes should be
- // added.
struct Schemes {
Schemes();
~Schemes();
std::vector<std::string> standard_schemes;
std::vector<std::string> referrer_schemes;
std::vector<std::string> savable_schemes;
- std::vector<std::string> secure_schemes;
+ // Additional schemes that should be allowed to register service workers.
+ // Only secure and trustworthy schemes should be added.
std::vector<std::string> service_worker_schemes;
+ // For the following three, see the documentation in WebSecurityPolicy.
+ std::vector<std::string> local_schemes;
+ std::vector<std::string> no_access_schemes;
+ std::vector<std::string> cors_enabled_schemes;
+ // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
+ std::vector<std::string> secure_schemes;
std::vector<GURL> secure_origins;
};
« no previous file with comments | « content/common/url_schemes.cc ('k') | content/public/common/origin_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698