| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // trustworthy schemes should be added. | 149 // trustworthy schemes should be added. |
| 150 virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {} | 150 virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {} |
| 151 | 151 |
| 152 // Returns true if the embedder wishes to supplement the site isolation policy | 152 // Returns true if the embedder wishes to supplement the site isolation policy |
| 153 // used by the content layer. Returning true enables the infrastructure for | 153 // used by the content layer. Returning true enables the infrastructure for |
| 154 // out-of-process iframes, and causes the content layer to consult | 154 // out-of-process iframes, and causes the content layer to consult |
| 155 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process | 155 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process |
| 156 // model decisions. | 156 // model decisions. |
| 157 virtual bool IsSupplementarySiteIsolationModeEnabled(); | 157 virtual bool IsSupplementarySiteIsolationModeEnabled(); |
| 158 | 158 |
| 159 // Returns the public key to be used for origin trials, or an empty string if |
| 160 // origin trials are not enabled in this context. |
| 161 virtual base::StringPiece GetOriginTrialPublicKey(); |
| 162 |
| 159 private: | 163 private: |
| 160 friend class ContentClientInitializer; // To set these pointers. | 164 friend class ContentClientInitializer; // To set these pointers. |
| 161 friend class InternalTestInitializer; | 165 friend class InternalTestInitializer; |
| 162 | 166 |
| 163 // The embedder API for participating in browser logic. | 167 // The embedder API for participating in browser logic. |
| 164 ContentBrowserClient* browser_; | 168 ContentBrowserClient* browser_; |
| 165 // The embedder API for participating in gpu logic. | 169 // The embedder API for participating in gpu logic. |
| 166 ContentGpuClient* gpu_; | 170 ContentGpuClient* gpu_; |
| 167 // The embedder API for participating in plugin logic. | 171 // The embedder API for participating in plugin logic. |
| 168 ContentPluginClient* plugin_; | 172 ContentPluginClient* plugin_; |
| 169 // The embedder API for participating in renderer logic. | 173 // The embedder API for participating in renderer logic. |
| 170 ContentRendererClient* renderer_; | 174 ContentRendererClient* renderer_; |
| 171 // The embedder API for participating in utility logic. | 175 // The embedder API for participating in utility logic. |
| 172 ContentUtilityClient* utility_; | 176 ContentUtilityClient* utility_; |
| 173 }; | 177 }; |
| 174 | 178 |
| 175 } // namespace content | 179 } // namespace content |
| 176 | 180 |
| 177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 181 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |