| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 6 #define CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 class PrefService; | 14 class PrefService; |
| 15 | 15 |
| 16 namespace breakpad { | |
| 17 class CrashDumpManager; | |
| 18 } // namespace breakpad | |
| 19 | |
| 20 namespace net { | 16 namespace net { |
| 21 class NetLog; | 17 class NetLog; |
| 22 } // namespace net | 18 } // namespace net |
| 23 | 19 |
| 24 namespace chromecast { | 20 namespace chromecast { |
| 25 class CastService; | 21 class CastService; |
| 26 class CastScreen; | 22 class CastScreen; |
| 27 class ConnectivityChecker; | 23 class ConnectivityChecker; |
| 28 | 24 |
| 29 namespace metrics { | 25 namespace metrics { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 55 void SetMetricsHelper( | 51 void SetMetricsHelper( |
| 56 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper); | 52 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper); |
| 57 void SetMetricsServiceClient( | 53 void SetMetricsServiceClient( |
| 58 std::unique_ptr<metrics::CastMetricsServiceClient> | 54 std::unique_ptr<metrics::CastMetricsServiceClient> |
| 59 metrics_service_client); | 55 metrics_service_client); |
| 60 void SetPrefService(std::unique_ptr<PrefService> pref_service); | 56 void SetPrefService(std::unique_ptr<PrefService> pref_service); |
| 61 void SetRemoteDebuggingServer( | 57 void SetRemoteDebuggingServer( |
| 62 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server); | 58 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server); |
| 63 void SetResourceDispatcherHostDelegate( | 59 void SetResourceDispatcherHostDelegate( |
| 64 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate); | 60 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate); |
| 65 #if defined(OS_ANDROID) | |
| 66 void SetCrashDumpManager( | |
| 67 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager); | |
| 68 #endif // defined(OS_ANDROID) | |
| 69 void SetConnectivityChecker( | 61 void SetConnectivityChecker( |
| 70 scoped_refptr<ConnectivityChecker> connectivity_checker); | 62 scoped_refptr<ConnectivityChecker> connectivity_checker); |
| 71 void SetNetLog(net::NetLog* net_log); | 63 void SetNetLog(net::NetLog* net_log); |
| 72 | 64 |
| 73 CastContentBrowserClient* browser_client() const { | 65 CastContentBrowserClient* browser_client() const { |
| 74 return cast_content_browser_client_; | 66 return cast_content_browser_client_; |
| 75 } | 67 } |
| 76 CastBrowserContext* browser_context() const { return browser_context_.get(); } | 68 CastBrowserContext* browser_context() const { return browser_context_.get(); } |
| 77 CastService* cast_service() const { return cast_service_.get(); } | 69 CastService* cast_service() const { return cast_service_.get(); } |
| 78 #if defined(USE_AURA) | 70 #if defined(USE_AURA) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 97 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper_; | 89 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper_; |
| 98 #if defined(USE_AURA) | 90 #if defined(USE_AURA) |
| 99 std::unique_ptr<CastScreen> cast_screen_; | 91 std::unique_ptr<CastScreen> cast_screen_; |
| 100 #endif // defined(USE_AURA) | 92 #endif // defined(USE_AURA) |
| 101 std::unique_ptr<PrefService> pref_service_; | 93 std::unique_ptr<PrefService> pref_service_; |
| 102 scoped_refptr<ConnectivityChecker> connectivity_checker_; | 94 scoped_refptr<ConnectivityChecker> connectivity_checker_; |
| 103 std::unique_ptr<CastBrowserContext> browser_context_; | 95 std::unique_ptr<CastBrowserContext> browser_context_; |
| 104 std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; | 96 std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; |
| 105 std::unique_ptr<CastResourceDispatcherHostDelegate> | 97 std::unique_ptr<CastResourceDispatcherHostDelegate> |
| 106 resource_dispatcher_host_delegate_; | 98 resource_dispatcher_host_delegate_; |
| 107 #if defined(OS_ANDROID) | |
| 108 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager_; | |
| 109 #endif // defined(OS_ANDROID) | |
| 110 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server_; | 99 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server_; |
| 111 | 100 |
| 112 CastContentBrowserClient* cast_content_browser_client_; | 101 CastContentBrowserClient* cast_content_browser_client_; |
| 113 net::NetLog* net_log_; | 102 net::NetLog* net_log_; |
| 114 | 103 |
| 115 // Note: CastService must be destroyed before others. | 104 // Note: CastService must be destroyed before others. |
| 116 std::unique_ptr<CastService> cast_service_; | 105 std::unique_ptr<CastService> cast_service_; |
| 117 | 106 |
| 118 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); | 107 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); |
| 119 }; | 108 }; |
| 120 | 109 |
| 121 } // namespace shell | 110 } // namespace shell |
| 122 } // namespace chromecast | 111 } // namespace chromecast |
| 123 | 112 |
| 124 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 113 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| OLD | NEW |