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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 1908423006: Allow content embedders to create AudioManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ScopedAudioManagerPtr instead of raw pointer Created 4 years, 8 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/cast_content_browser_client.h ('k') | chromecast/media/audio/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index d2b924783f56d7e9655902946cfb28057cf18e59..aa64240cbb01d9488971c23f466168375ba09891 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -32,6 +32,7 @@
#include "chromecast/browser/service/cast_service_simple.h"
#include "chromecast/browser/url_request_context_factory.h"
#include "chromecast/common/global_descriptors.h"
+#include "chromecast/media/audio/cast_audio_manager.h"
#include "chromecast/media/cma/backend/media_pipeline_backend_manager.h"
#include "chromecast/public/media/media_pipeline_backend.h"
#include "components/crash/content/app/breakpad_linux.h"
@@ -418,6 +419,12 @@ void CastContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
}
#else
+::media::ScopedAudioManagerPtr CastContentBrowserClient::CreateAudioManager(
+ ::media::AudioLogFactory* audio_log_factory) {
+ return ::media::ScopedAudioManagerPtr(new media::CastAudioManager(
+ GetMediaTaskRunner(), GetMediaTaskRunner(), audio_log_factory,
+ media_pipeline_backend_manager()));
+}
std::unique_ptr<::media::CdmFactory>
CastContentBrowserClient::CreateCdmFactory() {
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | chromecast/media/audio/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698