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

Unified Diff: chromecast/browser/cast_browser_main_parts.h

Issue 1113053002: Set the AudioManager factory before the browser main loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup + naming Created 5 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/DEPS ('k') | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_main_parts.h
diff --git a/chromecast/browser/cast_browser_main_parts.h b/chromecast/browser/cast_browser_main_parts.h
index 7c9baf49ad79fddd853d9e3d89093edf19d4f489..49954cef55d7192bec9174008058f97684b0478e 100644
--- a/chromecast/browser/cast_browser_main_parts.h
+++ b/chromecast/browser/cast_browser_main_parts.h
@@ -11,6 +11,10 @@
#include "content/public/browser/browser_main_parts.h"
#include "content/public/common/main_function_params.h"
+namespace media {
+class AudioManagerFactory;
+}
+
namespace chromecast {
namespace shell {
class CastBrowserProcess;
@@ -18,9 +22,11 @@ class URLRequestContextFactory;
class CastBrowserMainParts : public content::BrowserMainParts {
public:
+ // This class does not take ownership of |url_request_content_factory|.
CastBrowserMainParts(
const content::MainFunctionParams& parameters,
- URLRequestContextFactory* url_request_context_factory);
+ URLRequestContextFactory* url_request_context_factory,
+ scoped_ptr<::media::AudioManagerFactory> audio_manager_factory);
~CastBrowserMainParts() override;
// content::BrowserMainParts implementation:
@@ -35,6 +41,7 @@ class CastBrowserMainParts : public content::BrowserMainParts {
scoped_ptr<CastBrowserProcess> cast_browser_process_;
const content::MainFunctionParams parameters_; // For running browser tests.
URLRequestContextFactory* const url_request_context_factory_;
+ scoped_ptr<::media::AudioManagerFactory> audio_manager_factory_;
DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts);
};
« no previous file with comments | « chromecast/browser/DEPS ('k') | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698