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

Unified Diff: chromecast/browser/cast_browser_process.h

Issue 925183003: [Chromecast] Add connectivity checking for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments in patchset 1 Created 5 years, 10 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_browser_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_process.h
diff --git a/chromecast/browser/cast_browser_process.h b/chromecast/browser/cast_browser_process.h
index 456e7af382b51a410997f151c2de49baa826aea0..f4bec89e7a167caf155a91418e61ec8f149d50af 100644
--- a/chromecast/browser/cast_browser_process.h
+++ b/chromecast/browser/cast_browser_process.h
@@ -6,6 +6,7 @@
#define CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
class PrefService;
@@ -16,7 +17,7 @@ class CrashDumpManager;
namespace chromecast {
class CastService;
-class WebCryptoServer;
+class ConnectivityChecker;
namespace metrics {
class CastMetricsHelper;
@@ -25,6 +26,7 @@ class CastMetricsServiceClient;
namespace shell {
class CastBrowserContext;
+class CastResourceDispatcherHostDelegate;
class RemoteDebuggingServer;
class CastBrowserProcess {
@@ -44,10 +46,14 @@ class CastBrowserProcess {
void SetPrefService(scoped_ptr<PrefService> pref_service);
void SetRemoteDebuggingServer(
scoped_ptr<RemoteDebuggingServer> remote_debugging_server);
+ void SetResourceDispatcherHostDelegate(
+ scoped_ptr<CastResourceDispatcherHostDelegate> delegate);
#if defined(OS_ANDROID)
void SetCrashDumpManager(
scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager);
#endif // defined(OS_ANDROID)
+ void SetConnectivityChecker(
+ scoped_refptr<ConnectivityChecker> connectivity_checker);
CastBrowserContext* browser_context() const { return browser_context_.get(); }
CastService* cast_service() const { return cast_service_.get(); }
@@ -55,14 +61,24 @@ class CastBrowserProcess {
return metrics_service_client_.get();
}
PrefService* pref_service() const { return pref_service_.get(); }
+ CastResourceDispatcherHostDelegate* resource_dispatcher_host_delegate()
+ const {
+ return resource_dispatcher_host_delegate_.get();
+ }
+ ConnectivityChecker* connectivity_checker() const {
+ return connectivity_checker_.get();
+ }
private:
// Note: The following order should match the order they are set in
// CastBrowserMainParts.
scoped_ptr<metrics::CastMetricsHelper> metrics_helper_;
scoped_ptr<PrefService> pref_service_;
+ scoped_refptr<ConnectivityChecker> connectivity_checker_;
scoped_ptr<CastBrowserContext> browser_context_;
scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client_;
+ scoped_ptr<CastResourceDispatcherHostDelegate>
+ resource_dispatcher_host_delegate_;
#if defined(OS_ANDROID)
scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_;
#endif // defined(OS_ANDROID)
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/browser/cast_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698