Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: content/public/common/content_client.h

Issue 1907263003: media: Set MediaClientAndroid in the GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/gpu/gpu_process_control_impl.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/gpu/gpu_process_control_impl.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698