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

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

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 1 month 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 11 matching lines...) Expand all
22 namespace base { 22 namespace base {
23 class TimeDelta; 23 class TimeDelta;
24 } 24 }
25 25
26 namespace gpu { 26 namespace gpu {
27 union ValueState; 27 union ValueState;
28 } 28 }
29 29
30 namespace media { 30 namespace media {
31 class AudioOutputController; 31 class AudioOutputController;
32 class BrowserCdm; 32 class MediaKeys;
33 } 33 }
34 34
35 namespace content { 35 namespace content {
36 class BrowserContext; 36 class BrowserContext;
37 class BrowserMessageFilter; 37 class BrowserMessageFilter;
38 class RenderProcessHostObserver; 38 class RenderProcessHostObserver;
39 class RenderWidgetHost; 39 class RenderWidgetHost;
40 class ServiceRegistry; 40 class ServiceRegistry;
41 class StoragePartition; 41 class StoragePartition;
42 struct GlobalRequestID; 42 struct GlobalRequestID;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // with this object and passes it to the callback you specify, on 280 // with this object and passes it to the callback you specify, on
281 // the same thread on which you called the method. 281 // the same thread on which you called the method.
282 typedef std::list<scoped_refptr<media::AudioOutputController>> 282 typedef std::list<scoped_refptr<media::AudioOutputController>>
283 AudioOutputControllerList; 283 AudioOutputControllerList;
284 typedef base::Callback<void(const AudioOutputControllerList&)> 284 typedef base::Callback<void(const AudioOutputControllerList&)>
285 GetAudioOutputControllersCallback; 285 GetAudioOutputControllersCallback;
286 virtual void GetAudioOutputControllers( 286 virtual void GetAudioOutputControllers(
287 const GetAudioOutputControllersCallback& callback) const = 0; 287 const GetAudioOutputControllersCallback& callback) const = 0;
288 288
289 #if defined(ENABLE_BROWSER_CDMS) 289 #if defined(ENABLE_BROWSER_CDMS)
290 // Returns the ::media::BrowserCdm instance associated with |render_frame_id| 290 // Returns the CDM instance associated with |render_frame_id| and |cdm_id|,
291 // and |cdm_id|, or nullptr if not found. 291 // or nullptr if not found.
292 virtual media::BrowserCdm* GetBrowserCdm(int render_frame_id, 292 virtual scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id,
293 int cdm_id) const = 0; 293 int cdm_id) const = 0;
294 #endif 294 #endif
295 295
296 // Returns the current number of active views in this process. Excludes 296 // Returns the current number of active views in this process. Excludes
297 // any RenderViewHosts that are swapped out. 297 // any RenderViewHosts that are swapped out.
298 size_t GetActiveViewCount(); 298 size_t GetActiveViewCount();
299 299
300 // Static management functions ----------------------------------------------- 300 // Static management functions -----------------------------------------------
301 301
302 // Flag to run the renderer in process. This is primarily 302 // Flag to run the renderer in process. This is primarily
303 // for debugging purposes. When running "in process", the 303 // for debugging purposes. When running "in process", the
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 static void SetMaxRendererProcessCount(size_t count); 348 static void SetMaxRendererProcessCount(size_t count);
349 349
350 // Returns the current maximum number of renderer process hosts kept by the 350 // Returns the current maximum number of renderer process hosts kept by the
351 // content module. 351 // content module.
352 static size_t GetMaxRendererProcessCount(); 352 static size_t GetMaxRendererProcessCount();
353 }; 353 };
354 354
355 } // namespace content. 355 } // namespace content.
356 356
357 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 357 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698