| 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 |
| 16 namespace net { | 20 namespace net { |
| 17 class NetLog; | 21 class NetLog; |
| 18 } // namespace net | 22 } // namespace net |
| 19 | 23 |
| 20 namespace chromecast { | 24 namespace chromecast { |
| 21 class CastService; | 25 class CastService; |
| 22 class CastScreen; | 26 class CastScreen; |
| 23 class ConnectivityChecker; | 27 class ConnectivityChecker; |
| 24 | 28 |
| 25 namespace metrics { | 29 namespace metrics { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 51 void SetMetricsHelper( | 55 void SetMetricsHelper( |
| 52 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper); | 56 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper); |
| 53 void SetMetricsServiceClient( | 57 void SetMetricsServiceClient( |
| 54 std::unique_ptr<metrics::CastMetricsServiceClient> | 58 std::unique_ptr<metrics::CastMetricsServiceClient> |
| 55 metrics_service_client); | 59 metrics_service_client); |
| 56 void SetPrefService(std::unique_ptr<PrefService> pref_service); | 60 void SetPrefService(std::unique_ptr<PrefService> pref_service); |
| 57 void SetRemoteDebuggingServer( | 61 void SetRemoteDebuggingServer( |
| 58 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server); | 62 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server); |
| 59 void SetResourceDispatcherHostDelegate( | 63 void SetResourceDispatcherHostDelegate( |
| 60 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate); | 64 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) |
| 61 void SetConnectivityChecker( | 69 void SetConnectivityChecker( |
| 62 scoped_refptr<ConnectivityChecker> connectivity_checker); | 70 scoped_refptr<ConnectivityChecker> connectivity_checker); |
| 63 void SetNetLog(net::NetLog* net_log); | 71 void SetNetLog(net::NetLog* net_log); |
| 64 | 72 |
| 65 CastContentBrowserClient* browser_client() const { | 73 CastContentBrowserClient* browser_client() const { |
| 66 return cast_content_browser_client_; | 74 return cast_content_browser_client_; |
| 67 } | 75 } |
| 68 CastBrowserContext* browser_context() const { return browser_context_.get(); } | 76 CastBrowserContext* browser_context() const { return browser_context_.get(); } |
| 69 CastService* cast_service() const { return cast_service_.get(); } | 77 CastService* cast_service() const { return cast_service_.get(); } |
| 70 #if defined(USE_AURA) | 78 #if defined(USE_AURA) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper_; | 97 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper_; |
| 90 #if defined(USE_AURA) | 98 #if defined(USE_AURA) |
| 91 std::unique_ptr<CastScreen> cast_screen_; | 99 std::unique_ptr<CastScreen> cast_screen_; |
| 92 #endif // defined(USE_AURA) | 100 #endif // defined(USE_AURA) |
| 93 std::unique_ptr<PrefService> pref_service_; | 101 std::unique_ptr<PrefService> pref_service_; |
| 94 scoped_refptr<ConnectivityChecker> connectivity_checker_; | 102 scoped_refptr<ConnectivityChecker> connectivity_checker_; |
| 95 std::unique_ptr<CastBrowserContext> browser_context_; | 103 std::unique_ptr<CastBrowserContext> browser_context_; |
| 96 std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; | 104 std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; |
| 97 std::unique_ptr<CastResourceDispatcherHostDelegate> | 105 std::unique_ptr<CastResourceDispatcherHostDelegate> |
| 98 resource_dispatcher_host_delegate_; | 106 resource_dispatcher_host_delegate_; |
| 107 #if defined(OS_ANDROID) |
| 108 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager_; |
| 109 #endif // defined(OS_ANDROID) |
| 99 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server_; | 110 std::unique_ptr<RemoteDebuggingServer> remote_debugging_server_; |
| 100 | 111 |
| 101 CastContentBrowserClient* cast_content_browser_client_; | 112 CastContentBrowserClient* cast_content_browser_client_; |
| 102 net::NetLog* net_log_; | 113 net::NetLog* net_log_; |
| 103 | 114 |
| 104 // Note: CastService must be destroyed before others. | 115 // Note: CastService must be destroyed before others. |
| 105 std::unique_ptr<CastService> cast_service_; | 116 std::unique_ptr<CastService> cast_service_; |
| 106 | 117 |
| 107 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); | 118 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); |
| 108 }; | 119 }; |
| 109 | 120 |
| 110 } // namespace shell | 121 } // namespace shell |
| 111 } // namespace chromecast | 122 } // namespace chromecast |
| 112 | 123 |
| 113 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 124 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| OLD | NEW |