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

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

Issue 1101033003: Move IsOriginSecure() into //content and use it in ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added disallow copy/assign 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 | « content/content_tests.gypi ('k') | content/public/common/content_client.cc » ('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 13f0d5c57dc0b986c9c016e7404b6c71a5345440..9b9cebac720c5ff42fb525d284523ce238dbc429 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
#define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
+#include <set>
#include <string>
#include <vector>
@@ -134,6 +135,12 @@ class CONTENT_EXPORT ContentClient {
int* sandbox_profile_resource_id) const;
#endif
+ // Gives the embedder a chance to register additional schemes and origins
+ // that need to be considered trustworthy.
+ // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy.
+ virtual void AddSecureSchemesAndOrigins(std::set<std::string>* schemes,
+ std::set<GURL>* origins) {}
+
private:
friend class ContentClientInitializer; // To set these pointers.
friend class InternalTestInitializer;
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698