Index: content/public/common/content_client.h |
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h |
index 9b9cebac720c5ff42fb525d284523ce238dbc429..89887e054c2e032a623eb7801584a63401e13d5b 100644 |
--- a/content/public/common/content_client.h |
+++ b/content/public/common/content_client.h |
@@ -141,6 +141,11 @@ class CONTENT_EXPORT ContentClient { |
virtual void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
std::set<GURL>* origins) {} |
+ // Gives the embedder a chance to register additional schemes that |
+ // should be allowed to register service workers. Only secure and |
+ // trustworthy schemes should be added. |
+ virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {} |
+ |
private: |
friend class ContentClientInitializer; // To set these pointers. |
friend class InternalTestInitializer; |