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

Unified Diff: content/common/url_schemes.h

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge 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/savable_url_schemes.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/url_schemes.h
diff --git a/content/common/url_schemes.h b/content/common/url_schemes.h
index 1441c9c9ab0cc7c4c4274697681b693ae4e75964..3cb43f73adc4a06916857dd470d35d64f75275a8 100644
--- a/content/common/url_schemes.h
+++ b/content/common/url_schemes.h
@@ -5,7 +5,11 @@
#ifndef CONTENT_COMMON_URL_SCHEMES_H_
#define CONTENT_COMMON_URL_SCHEMES_H_
+#include <string>
+#include <vector>
+
#include "content/common/content_export.h"
+#include "url/gurl.h"
namespace content {
@@ -21,6 +25,17 @@ namespace content {
// overriding the ContentClient::AddAdditionalSchemes method.
CONTENT_EXPORT void RegisterContentSchemes(bool lock_schemes);
+// See comment in ContentClient::AddAdditionalSchemes for explanations. These
+// getters can be invoked on any thread.
+const std::vector<std::string>& GetSavableSchemes();
+const std::vector<std::string>& GetSecureSchemes();
+const std::vector<GURL>& GetSecureOrigins();
+const std::vector<std::string>& GetServiceWorkerSchemes();
+
+// Resets the internal secure schemes/origins and service worker whitelists.
+// Used only for testing.
+void CONTENT_EXPORT RefreshSecuritySchemesForTesting();
+
} // namespace content
#endif // CONTENT_COMMON_URL_SCHEMES_H_
« no previous file with comments | « content/common/savable_url_schemes.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698