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

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

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
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 e00057466f56f38ab585dc535ceaa41aa0c96923..9cfd325a83dd758bada64e56936cbac3eb891bc9 100644
--- a/chromecast/browser/media/cma_message_filter_host.h
+++ b/chromecast/browser/media/cma_message_filter_host.h
@@ -12,6 +12,7 @@
#include "base/memory/shared_memory.h"
#include "base/memory/weak_ptr.h"
#include "chromecast/common/media/cma_ipc_common.h"
+#include "chromecast/media/cma/backend/media_pipeline_device.h"
#include "chromecast/media/cma/pipeline/load_type.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/browser_thread.h"
@@ -42,7 +43,9 @@ class MediaPipelineHost;
class CmaMessageFilterHost
: public content::BrowserMessageFilter {
public:
- explicit CmaMessageFilterHost(int render_process_id);
+ CmaMessageFilterHost(
+ int render_process_id,
+ const media::CreatePipelineDeviceCB& create_pipeline_device_cb);
// content::BrowserMessageFilter implementation.
void OnChannelClosing() override;
@@ -109,6 +112,9 @@ class CmaMessageFilterHost
// Render process ID correponding to this message filter.
const int process_id_;
+ // Factory function for device-specific part of media pipeline creation
+ media::CreatePipelineDeviceCB create_pipeline_device_cb_;
+
// List of media pipeline and message loop media pipelines are running on.
MediaPipelineMap media_pipelines_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
@@ -123,4 +129,3 @@ class CmaMessageFilterHost
} // namespace chromecast
#endif // CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_FILTER_HOST_H_
-
« no previous file with comments | « chromecast/browser/cast_content_browser_client_simple.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