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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 894173002: Adds hook for content embedders to get media::BrowserCdm*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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
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_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 namespace base { 23 namespace base {
24 class TimeDelta; 24 class TimeDelta;
25 } 25 }
26 26
27 namespace gpu { 27 namespace gpu {
28 union ValueState; 28 union ValueState;
29 } 29 }
30 30
31 namespace media { 31 namespace media {
32 class AudioOutputController; 32 class AudioOutputController;
33 class BrowserCdm;
33 } 34 }
34 35
35 namespace content { 36 namespace content {
36 class BrowserContext; 37 class BrowserContext;
37 class BrowserMessageFilter; 38 class BrowserMessageFilter;
38 class RenderProcessHostObserver; 39 class RenderProcessHostObserver;
39 class RenderWidgetHost; 40 class RenderWidgetHost;
40 class ServiceRegistry; 41 class ServiceRegistry;
41 class StoragePartition; 42 class StoragePartition;
42 struct GlobalRequestID; 43 struct GlobalRequestID;
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Retrieves the list of AudioOutputController objects associated 265 // Retrieves the list of AudioOutputController objects associated
265 // with this object and passes it to the callback you specify, on 266 // with this object and passes it to the callback you specify, on
266 // the same thread on which you called the method. 267 // the same thread on which you called the method.
267 typedef std::list<scoped_refptr<media::AudioOutputController>> 268 typedef std::list<scoped_refptr<media::AudioOutputController>>
268 AudioOutputControllerList; 269 AudioOutputControllerList;
269 typedef base::Callback<void(const AudioOutputControllerList&)> 270 typedef base::Callback<void(const AudioOutputControllerList&)>
270 GetAudioOutputControllersCallback; 271 GetAudioOutputControllersCallback;
271 virtual void GetAudioOutputControllers( 272 virtual void GetAudioOutputControllers(
272 const GetAudioOutputControllersCallback& callback) const = 0; 273 const GetAudioOutputControllersCallback& callback) const = 0;
273 274
275 #if defined(ENABLE_BROWSER_CDMS)
276 // Returns the ::media::BrowserCdm instance associated with |render_frame_id|
277 // and |cdm_id| by invoking |cdm_callback|, or nullptr if not found.
erickung1 2015/02/02 21:51:34 Nit: updates the comment since |cdm_callback| is n
gunsch 2015/02/02 23:43:13 Done.
278 virtual media::BrowserCdm* GetBrowserCdm(int render_frame_id,
279 int cdm_id) const = 0;
280 #endif
281
274 // Static management functions ----------------------------------------------- 282 // Static management functions -----------------------------------------------
275 283
276 // Flag to run the renderer in process. This is primarily 284 // Flag to run the renderer in process. This is primarily
277 // for debugging purposes. When running "in process", the 285 // for debugging purposes. When running "in process", the
278 // browser maintains a single RenderProcessHost which communicates 286 // browser maintains a single RenderProcessHost which communicates
279 // to a RenderProcess which is instantiated in the same process 287 // to a RenderProcess which is instantiated in the same process
280 // with the Browser. All IPC between the Browser and the 288 // with the Browser. All IPC between the Browser and the
281 // Renderer is the same, it's just not crossing a process boundary. 289 // Renderer is the same, it's just not crossing a process boundary.
282 290
283 static bool run_renderer_in_process(); 291 static bool run_renderer_in_process();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 static void SetMaxRendererProcessCount(size_t count); 330 static void SetMaxRendererProcessCount(size_t count);
323 331
324 // Returns the current maximum number of renderer process hosts kept by the 332 // Returns the current maximum number of renderer process hosts kept by the
325 // content module. 333 // content module.
326 static size_t GetMaxRendererProcessCount(); 334 static size_t GetMaxRendererProcessCount();
327 }; 335 };
328 336
329 } // namespace content. 337 } // namespace content.
330 338
331 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 339 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698