| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // used by the content layer. Returning true enables the infrastructure for | 151 // used by the content layer. Returning true enables the infrastructure for |
| 152 // out-of-process iframes, and causes the content layer to consult | 152 // out-of-process iframes, and causes the content layer to consult |
| 153 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process | 153 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process |
| 154 // model decisions. | 154 // model decisions. |
| 155 virtual bool IsSupplementarySiteIsolationModeEnabled(); | 155 virtual bool IsSupplementarySiteIsolationModeEnabled(); |
| 156 | 156 |
| 157 // Returns the public key to be used for origin trials, or an empty string if | 157 // Returns the public key to be used for origin trials, or an empty string if |
| 158 // origin trials are not enabled in this context. | 158 // origin trials are not enabled in this context. |
| 159 virtual base::StringPiece GetOriginTrialPublicKey(); | 159 virtual base::StringPiece GetOriginTrialPublicKey(); |
| 160 | 160 |
| 161 #if defined(OS_ANDROID) |
| 162 // Returns true for clients like Android WebView that uses synchronous |
| 163 // compositor. Note setting this to true will permit synchronous IPCs from |
| 164 // the browser UI thread. |
| 165 virtual bool UsingSynchronousCompositing(); |
| 166 #endif // OS_ANDROID |
| 167 |
| 161 private: | 168 private: |
| 162 friend class ContentClientInitializer; // To set these pointers. | 169 friend class ContentClientInitializer; // To set these pointers. |
| 163 friend class InternalTestInitializer; | 170 friend class InternalTestInitializer; |
| 164 | 171 |
| 165 // The embedder API for participating in browser logic. | 172 // The embedder API for participating in browser logic. |
| 166 ContentBrowserClient* browser_; | 173 ContentBrowserClient* browser_; |
| 167 // The embedder API for participating in gpu logic. | 174 // The embedder API for participating in gpu logic. |
| 168 ContentGpuClient* gpu_; | 175 ContentGpuClient* gpu_; |
| 169 // The embedder API for participating in renderer logic. | 176 // The embedder API for participating in renderer logic. |
| 170 ContentRendererClient* renderer_; | 177 ContentRendererClient* renderer_; |
| 171 // The embedder API for participating in utility logic. | 178 // The embedder API for participating in utility logic. |
| 172 ContentUtilityClient* utility_; | 179 ContentUtilityClient* utility_; |
| 173 }; | 180 }; |
| 174 | 181 |
| 175 } // namespace content | 182 } // namespace content |
| 176 | 183 |
| 177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 184 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |