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_ |