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

Unified 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, 11 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 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 b74e38f20592baff448d2e28209a38cd98abdb02..fde32cb3c60391f4d88955d022de75b2898c29e9 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -30,6 +30,7 @@ union ValueState;
namespace media {
class AudioOutputController;
+class BrowserCdm;
}
namespace content {
@@ -271,6 +272,13 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
virtual void GetAudioOutputControllers(
const GetAudioOutputControllersCallback& callback) const = 0;
+#if defined(ENABLE_BROWSER_CDMS)
+ // Returns the ::media::BrowserCdm instance associated with |render_frame_id|
+ // 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.
+ virtual media::BrowserCdm* GetBrowserCdm(int render_frame_id,
+ int cdm_id) const = 0;
+#endif
+
// Static management functions -----------------------------------------------
// Flag to run the renderer in process. This is primarily

Powered by Google App Engine
This is Rietveld 408576698