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

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

Issue 1168643004: Allow CastContentBrowserClient to customise media pipeline device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment updates + Android exclusion Created 5 years, 6 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
« no previous file with comments | « chromecast/browser/media/cma_message_filter_host.h ('k') | chromecast/browser/media/media_pipeline_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/media/cma_message_filter_host.cc
diff --git a/chromecast/browser/media/cma_message_filter_host.cc b/chromecast/browser/media/cma_message_filter_host.cc
index 2d34deaf2f032e265e1febdbcb0452545ea0233f..fa5864686fd47660d9186661a9f46161e1ff23f2 100644
--- a/chromecast/browser/media/cma_message_filter_host.cc
+++ b/chromecast/browser/media/cma_message_filter_host.cc
@@ -297,9 +297,12 @@ void UpdateVideoSurfaceHost(int surface_id, const gfx::QuadF& quad) {
} // namespace
-CmaMessageFilterHost::CmaMessageFilterHost(int render_process_id)
+CmaMessageFilterHost::CmaMessageFilterHost(
+ int render_process_id,
+ const media::CreatePipelineDeviceCB& create_pipeline_device_cb)
: content::BrowserMessageFilter(CastMediaMsgStart),
process_id_(render_process_id),
+ create_pipeline_device_cb_(create_pipeline_device_cb),
task_runner_(CmaMessageLoop::GetTaskRunner()),
weak_factory_(this) {
weak_this_ = weak_factory_.GetWeakPtr();
@@ -382,10 +385,9 @@ void CmaMessageFilterHost::CreateMedia(int media_id, LoadType load_type) {
base::Bind(&SetMediaPipeline,
process_id_, media_id, media_pipeline_host.get()));
task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&MediaPipelineHost::Initialize,
- base::Unretained(media_pipeline_host.get()),
- load_type, client));
+ FROM_HERE, base::Bind(&MediaPipelineHost::Initialize,
+ base::Unretained(media_pipeline_host.get()),
+ load_type, client, create_pipeline_device_cb_));
std::pair<MediaPipelineMap::iterator, bool> ret =
media_pipelines_.insert(
std::make_pair(media_id, media_pipeline_host.release()));
« no previous file with comments | « chromecast/browser/media/cma_message_filter_host.h ('k') | chromecast/browser/media/media_pipeline_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698