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

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

Issue 1192013003: [Extension ServiceWorkers] Allow service worker registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Took out extra reload Created 5 years, 5 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 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;

Powered by Google App Engine
This is Rietveld 408576698