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

Unified Diff: chromecast/browser/cast_content_browser_client.h

Issue 1327723002: [Chromecast] Raises CastService creation to CastContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: removed unnecessary include Created 5 years, 4 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_browser_main_parts.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.h
diff --git a/chromecast/browser/cast_content_browser_client.h b/chromecast/browser/cast_content_browser_client.h
index 591856fc0ef7395eddeb0bf659134a6242011278..5ac342e91d68aa500f745336a5cd1c62e48d1d21 100644
--- a/chromecast/browser/cast_content_browser_client.h
+++ b/chromecast/browser/cast_content_browser_client.h
@@ -13,14 +13,12 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/content_browser_client.h"
+class PrefService;
+
namespace breakpad {
class CrashHandlerHostLinux;
}
-namespace content {
-class BrowserMessageFilter;
-}
-
namespace media {
class AudioManagerFactory;
}
@@ -30,6 +28,8 @@ class MetricsService;
}
namespace chromecast {
+class CastService;
+
namespace media {
class MediaPipelineBackend;
struct MediaPipelineDeviceParams;
@@ -51,10 +51,13 @@ class CastContentBrowserClient : public content::ContentBrowserClient {
// Appends extra command line arguments before launching a new process.
virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line);
- // Returns any BrowserMessageFilters that should be added when launching a
- // new render process.
- virtual std::vector<scoped_refptr<content::BrowserMessageFilter>>
- GetBrowserMessageFilters();
+ // Creates and returns the CastService instance for the current process.
+ // Note: |request_context_getter| might be different than the main request
+ // getter accessible via CastBrowserProcess.
+ virtual scoped_ptr<CastService> CreateCastService(
+ content::BrowserContext* browser_context,
+ PrefService* pref_service,
+ net::URLRequestContextGetter* request_context_getter);
// Provide an AudioManagerFactory instance for WebAudio playback.
virtual scoped_ptr<::media::AudioManagerFactory> CreateAudioManagerFactory();
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698