| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_URL_SCHEMES_H_ | 5 #ifndef CONTENT_COMMON_URL_SCHEMES_H_ |
| 6 #define CONTENT_COMMON_URL_SCHEMES_H_ | 6 #define CONTENT_COMMON_URL_SCHEMES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // | 21 // |
| 22 // Called near the beginning of startup to register URL schemes that should be | 22 // Called near the beginning of startup to register URL schemes that should be |
| 23 // parsed as "standard" or "referrer" with the src/url/ library. Optionally, the | 23 // parsed as "standard" or "referrer" with the src/url/ library. Optionally, the |
| 24 // sets of schemes are locked down. The embedder can add additional schemes by | 24 // sets of schemes are locked down. The embedder can add additional schemes by |
| 25 // overriding the ContentClient::AddAdditionalSchemes method. | 25 // overriding the ContentClient::AddAdditionalSchemes method. |
| 26 CONTENT_EXPORT void RegisterContentSchemes(bool lock_schemes); | 26 CONTENT_EXPORT void RegisterContentSchemes(bool lock_schemes); |
| 27 | 27 |
| 28 // See comment in ContentClient::AddAdditionalSchemes for explanations. These | 28 // See comment in ContentClient::AddAdditionalSchemes for explanations. These |
| 29 // getters can be invoked on any thread. | 29 // getters can be invoked on any thread. |
| 30 const std::vector<std::string>& GetSavableSchemes(); | 30 const std::vector<std::string>& GetSavableSchemes(); |
| 31 const std::vector<std::string>& GetSecureSchemes(); | |
| 32 const std::vector<GURL>& GetSecureOrigins(); | 31 const std::vector<GURL>& GetSecureOrigins(); |
| 33 const std::vector<std::string>& GetServiceWorkerSchemes(); | 32 const std::vector<std::string>& GetServiceWorkerSchemes(); |
| 34 | 33 |
| 35 // Resets the internal secure schemes/origins and service worker whitelists. | |
| 36 // Used only for testing. | |
| 37 void CONTENT_EXPORT RefreshSecuritySchemesForTesting(); | |
| 38 | |
| 39 } // namespace content | 34 } // namespace content |
| 40 | 35 |
| 41 #endif // CONTENT_COMMON_URL_SCHEMES_H_ | 36 #endif // CONTENT_COMMON_URL_SCHEMES_H_ |
| OLD | NEW |