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

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, 8 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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