| 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 16 matching lines...) Expand all Loading... |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace gfx { | 29 namespace gfx { |
| 30 class Image; | 30 class Image; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace gpu { | 33 namespace gpu { |
| 34 struct GPUInfo; | 34 struct GPUInfo; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace media { |
| 38 class MediaClientAndroid; |
| 39 } |
| 40 |
| 37 namespace sandbox { | 41 namespace sandbox { |
| 38 class TargetPolicy; | 42 class TargetPolicy; |
| 39 } | 43 } |
| 40 | 44 |
| 41 namespace content { | 45 namespace content { |
| 42 | 46 |
| 43 class ContentBrowserClient; | 47 class ContentBrowserClient; |
| 44 class ContentClient; | 48 class ContentClient; |
| 45 class ContentGpuClient; | 49 class ContentGpuClient; |
| 46 class ContentRendererClient; | 50 class ContentRendererClient; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 166 |
| 163 // Returns the public key to be used for origin trials, or an empty string if | 167 // Returns the public key to be used for origin trials, or an empty string if |
| 164 // origin trials are not enabled in this context. | 168 // origin trials are not enabled in this context. |
| 165 virtual base::StringPiece GetOriginTrialPublicKey(); | 169 virtual base::StringPiece GetOriginTrialPublicKey(); |
| 166 | 170 |
| 167 #if defined(OS_ANDROID) | 171 #if defined(OS_ANDROID) |
| 168 // Returns true for clients like Android WebView that uses synchronous | 172 // Returns true for clients like Android WebView that uses synchronous |
| 169 // compositor. Note setting this to true will permit synchronous IPCs from | 173 // compositor. Note setting this to true will permit synchronous IPCs from |
| 170 // the browser UI thread. | 174 // the browser UI thread. |
| 171 virtual bool UsingSynchronousCompositing(); | 175 virtual bool UsingSynchronousCompositing(); |
| 176 |
| 177 // Returns the MediaClientAndroid to be used by media code on Android. |
| 178 virtual media::MediaClientAndroid* GetMediaClientAndroid(); |
| 172 #endif // OS_ANDROID | 179 #endif // OS_ANDROID |
| 173 | 180 |
| 174 private: | 181 private: |
| 175 friend class ContentClientInitializer; // To set these pointers. | 182 friend class ContentClientInitializer; // To set these pointers. |
| 176 friend class InternalTestInitializer; | 183 friend class InternalTestInitializer; |
| 177 | 184 |
| 178 // The embedder API for participating in browser logic. | 185 // The embedder API for participating in browser logic. |
| 179 ContentBrowserClient* browser_; | 186 ContentBrowserClient* browser_; |
| 180 // The embedder API for participating in gpu logic. | 187 // The embedder API for participating in gpu logic. |
| 181 ContentGpuClient* gpu_; | 188 ContentGpuClient* gpu_; |
| 182 // The embedder API for participating in renderer logic. | 189 // The embedder API for participating in renderer logic. |
| 183 ContentRendererClient* renderer_; | 190 ContentRendererClient* renderer_; |
| 184 // The embedder API for participating in utility logic. | 191 // The embedder API for participating in utility logic. |
| 185 ContentUtilityClient* utility_; | 192 ContentUtilityClient* utility_; |
| 186 }; | 193 }; |
| 187 | 194 |
| 188 } // namespace content | 195 } // namespace content |
| 189 | 196 |
| 190 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 197 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |