Chromium Code Reviews| 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_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 // that need to be considered trustworthy. | 140 // that need to be considered trustworthy. |
| 141 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. | 141 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. |
| 142 virtual void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 142 virtual void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
| 143 std::set<GURL>* origins) {} | 143 std::set<GURL>* origins) {} |
| 144 | 144 |
| 145 // Gives the embedder a chance to register additional schemes that | 145 // Gives the embedder a chance to register additional schemes that |
| 146 // should be allowed to register service workers. Only secure and | 146 // should be allowed to register service workers. Only secure and |
| 147 // trustworthy schemes should be added. | 147 // trustworthy schemes should be added. |
| 148 virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {} | 148 virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {} |
| 149 | 149 |
| 150 // Gives the embedder a chance to register schemes for which site isolation | 150 // Returns true if the embedder wishes to supplement the site isolation policy |
| 151 // should be enabled. | 151 // used by the content layer. |
|
Charlie Reis
2015/10/12 23:13:28
nit: Let's say a bit more of what this implies (e.
ncarter (slow)
2015/10/13 20:22:11
Done.
| |
| 152 virtual void AddIsolatedSchemes(std::set<std::string>* schemes) {} | 152 virtual bool IsSupplementarySiteIsolationModeEnabled(); |
| 153 | 153 |
| 154 private: | 154 private: |
| 155 friend class ContentClientInitializer; // To set these pointers. | 155 friend class ContentClientInitializer; // To set these pointers. |
| 156 friend class InternalTestInitializer; | 156 friend class InternalTestInitializer; |
| 157 | 157 |
| 158 // The embedder API for participating in browser logic. | 158 // The embedder API for participating in browser logic. |
| 159 ContentBrowserClient* browser_; | 159 ContentBrowserClient* browser_; |
| 160 // The embedder API for participating in plugin logic. | 160 // The embedder API for participating in plugin logic. |
| 161 ContentPluginClient* plugin_; | 161 ContentPluginClient* plugin_; |
| 162 // The embedder API for participating in renderer logic. | 162 // The embedder API for participating in renderer logic. |
| 163 ContentRendererClient* renderer_; | 163 ContentRendererClient* renderer_; |
| 164 // The embedder API for participating in utility logic. | 164 // The embedder API for participating in utility logic. |
| 165 ContentUtilityClient* utility_; | 165 ContentUtilityClient* utility_; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace content | 168 } // namespace content |
| 169 | 169 |
| 170 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 170 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |