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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 | 160 |
157 // Returns the public key to be used for origin trials, or an empty string if | 161 // Returns the public key to be used for origin trials, or an empty string if |
158 // origin trials are not enabled in this context. | 162 // origin trials are not enabled in this context. |
159 virtual base::StringPiece GetOriginTrialPublicKey(); | 163 virtual base::StringPiece GetOriginTrialPublicKey(); |
160 | 164 |
161 #if defined(OS_ANDROID) | 165 #if defined(OS_ANDROID) |
162 // Returns true for clients like Android WebView that uses synchronous | 166 // Returns true for clients like Android WebView that uses synchronous |
163 // compositor. Note setting this to true will permit synchronous IPCs from | 167 // compositor. Note setting this to true will permit synchronous IPCs from |
164 // the browser UI thread. | 168 // the browser UI thread. |
165 virtual bool UsingSynchronousCompositing(); | 169 virtual bool UsingSynchronousCompositing(); |
170 | |
171 // Returns the MediaClientAndroid to be used by media code on Android. | |
172 virtual media::MediaClientAndroid* GetMediaClientAndroid(); | |
Lei Zhang
2016/04/26 00:02:21
Can this go into ContentGpuClient instead?
xhwang
2016/04/26 03:25:45
Good question. Please see the CL description:
"To
| |
166 #endif // OS_ANDROID | 173 #endif // OS_ANDROID |
167 | 174 |
168 private: | 175 private: |
169 friend class ContentClientInitializer; // To set these pointers. | 176 friend class ContentClientInitializer; // To set these pointers. |
170 friend class InternalTestInitializer; | 177 friend class InternalTestInitializer; |
171 | 178 |
172 // The embedder API for participating in browser logic. | 179 // The embedder API for participating in browser logic. |
173 ContentBrowserClient* browser_; | 180 ContentBrowserClient* browser_; |
174 // The embedder API for participating in gpu logic. | 181 // The embedder API for participating in gpu logic. |
175 ContentGpuClient* gpu_; | 182 ContentGpuClient* gpu_; |
176 // The embedder API for participating in renderer logic. | 183 // The embedder API for participating in renderer logic. |
177 ContentRendererClient* renderer_; | 184 ContentRendererClient* renderer_; |
178 // The embedder API for participating in utility logic. | 185 // The embedder API for participating in utility logic. |
179 ContentUtilityClient* utility_; | 186 ContentUtilityClient* utility_; |
180 }; | 187 }; |
181 | 188 |
182 } // namespace content | 189 } // namespace content |
183 | 190 |
184 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 191 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |