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

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: fixes CmaMessageFilterHost callback reference, 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 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..e5e60dc0bd7df39e92510213bb5d04840ec01330 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|, or nullptr if not found.
+ 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
« 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