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

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

Issue 1934193003: media: Set MediaClientAndroid in the GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // used by the content layer. Returning true enables the infrastructure for 155 // used by the content layer. Returning true enables the infrastructure for
152 // out-of-process iframes, and causes the content layer to consult 156 // out-of-process iframes, and causes the content layer to consult
153 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process 157 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process
154 // model decisions. 158 // model decisions.
155 virtual bool IsSupplementarySiteIsolationModeEnabled(); 159 virtual bool IsSupplementarySiteIsolationModeEnabled();
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
165 #if defined(OS_ANDROID)
166 // Returns the MediaClientAndroid to be used by media code on Android.
167 virtual media::MediaClientAndroid* GetMediaClientAndroid();
168 #endif // OS_ANDROID
169
161 private: 170 private:
162 friend class ContentClientInitializer; // To set these pointers. 171 friend class ContentClientInitializer; // To set these pointers.
163 friend class InternalTestInitializer; 172 friend class InternalTestInitializer;
164 173
165 // The embedder API for participating in browser logic. 174 // The embedder API for participating in browser logic.
166 ContentBrowserClient* browser_; 175 ContentBrowserClient* browser_;
167 // The embedder API for participating in gpu logic. 176 // The embedder API for participating in gpu logic.
168 ContentGpuClient* gpu_; 177 ContentGpuClient* gpu_;
169 // The embedder API for participating in renderer logic. 178 // The embedder API for participating in renderer logic.
170 ContentRendererClient* renderer_; 179 ContentRendererClient* renderer_;
171 // The embedder API for participating in utility logic. 180 // The embedder API for participating in utility logic.
172 ContentUtilityClient* utility_; 181 ContentUtilityClient* utility_;
173 }; 182 };
174 183
175 } // namespace content 184 } // namespace content
176 185
177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 186 #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