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