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

Unified Diff: chromecast/browser/media/cma_message_filter_host.h

Issue 1306843003: CmaMediaPipelineClient to watch media pipeline status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Doc Created 5 years, 3 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: chromecast/browser/media/cma_message_filter_host.h
diff --git a/chromecast/browser/media/cma_message_filter_host.h b/chromecast/browser/media/cma_message_filter_host.h
index 6408ba4d21f2bd8cfca35da4d2db8e7394d99483..48e95ff15dea798a52af63d8a5cc2d6a67afc1fe 100644
--- a/chromecast/browser/media/cma_message_filter_host.h
+++ b/chromecast/browser/media/cma_message_filter_host.h
@@ -40,6 +40,7 @@ namespace media {
class MediaPipelineBackend;
struct MediaPipelineDeviceParams;
class MediaPipelineHost;
+class CmaMediaPipelineClient;
class CmaMessageFilterHost
: public content::BrowserMessageFilter {
@@ -48,9 +49,8 @@ class CmaMessageFilterHost
typedef base::Callback<scoped_ptr<MediaPipelineBackend>(
const MediaPipelineDeviceParams&)> CreateDeviceComponentsCB;
- CmaMessageFilterHost(
- int render_process_id,
- const CreateDeviceComponentsCB& create_device_components_cb);
+ CmaMessageFilterHost(int render_process_id,
+ scoped_refptr<CmaMediaPipelineClient> client);
// content::BrowserMessageFilter implementation.
void OnChannelClosing() override;
@@ -120,6 +120,7 @@ class CmaMessageFilterHost
// Factory function for device-specific part of media pipeline creation
CreateDeviceComponentsCB create_device_components_cb_;
+ scoped_refptr<CmaMediaPipelineClient> client_;
// List of media pipeline and message loop media pipelines are running on.
MediaPipelineMap media_pipelines_;
« no previous file with comments | « chromecast/browser/media/cma_media_pipeline_client.cc ('k') | chromecast/browser/media/cma_message_filter_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698