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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index 9ae9b16779dfaa5e5923963cc39b3c57bc698be1..46e147a3ce55a94cd63fa209672d82ba95d6d93f 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -29,7 +29,7 @@ union ValueState;
namespace media {
class AudioOutputController;
-class BrowserCdm;
+class MediaKeys;
}
namespace content {
@@ -287,10 +287,10 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
const GetAudioOutputControllersCallback& callback) const = 0;
#if defined(ENABLE_BROWSER_CDMS)
- // Returns the ::media::BrowserCdm instance associated with |render_frame_id|
- // and |cdm_id|, or nullptr if not found.
- virtual media::BrowserCdm* GetBrowserCdm(int render_frame_id,
- int cdm_id) const = 0;
+ // Returns the CDM instance associated with |render_frame_id| and |cdm_id|,
+ // or nullptr if not found.
+ virtual scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id,
+ int cdm_id) const = 0;
#endif
// Returns the current number of active views in this process. Excludes
« 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