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 { | 16 namespace breakpad { |
17 class CrashDumpManager; | 17 class CrashDumpManager; |
18 } // namespace breakpad | 18 } // namespace breakpad |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 class NetLog; | 21 class NetLog; |
| 22 class ProxyConfig; |
22 } // namespace net | 23 } // namespace net |
23 | 24 |
24 namespace chromecast { | 25 namespace chromecast { |
25 class CastService; | 26 class CastService; |
26 class CastScreen; | 27 class CastScreen; |
27 class ConnectivityChecker; | 28 class ConnectivityChecker; |
28 | 29 |
29 namespace metrics { | 30 namespace metrics { |
30 class CastMetricsHelper; | 31 class CastMetricsHelper; |
31 class CastMetricsServiceClient; | 32 class CastMetricsServiceClient; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 } | 84 } |
84 PrefService* pref_service() const { return pref_service_.get(); } | 85 PrefService* pref_service() const { return pref_service_.get(); } |
85 CastResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() | 86 CastResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() |
86 const { | 87 const { |
87 return resource_dispatcher_host_delegate_.get(); | 88 return resource_dispatcher_host_delegate_.get(); |
88 } | 89 } |
89 ConnectivityChecker* connectivity_checker() const { | 90 ConnectivityChecker* connectivity_checker() const { |
90 return connectivity_checker_.get(); | 91 return connectivity_checker_.get(); |
91 } | 92 } |
92 net::NetLog* net_log() const { return net_log_; } | 93 net::NetLog* net_log() const { return net_log_; } |
| 94 net::ProxyConfig* proxy_config(); |
93 | 95 |
94 private: | 96 private: |
| 97 std::unique_ptr<net::ProxyConfig> proxy_config_; |
95 // Note: The following order should match the order they are set in | 98 // Note: The following order should match the order they are set in |
96 // CastBrowserMainParts. | 99 // CastBrowserMainParts. |
97 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper_; | 100 std::unique_ptr<metrics::CastMetricsHelper> metrics_helper_; |
98 #if defined(USE_AURA) | 101 #if defined(USE_AURA) |
99 std::unique_ptr<CastScreen> cast_screen_; | 102 std::unique_ptr<CastScreen> cast_screen_; |
100 #endif // defined(USE_AURA) | 103 #endif // defined(USE_AURA) |
101 std::unique_ptr<PrefService> pref_service_; | 104 std::unique_ptr<PrefService> pref_service_; |
102 scoped_refptr<ConnectivityChecker> connectivity_checker_; | 105 scoped_refptr<ConnectivityChecker> connectivity_checker_; |
103 std::unique_ptr<CastBrowserContext> browser_context_; | 106 std::unique_ptr<CastBrowserContext> browser_context_; |
104 std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; | 107 std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; |
(...skipping 10 matching lines...) Expand all Loading... |
115 // Note: CastService must be destroyed before others. | 118 // Note: CastService must be destroyed before others. |
116 std::unique_ptr<CastService> cast_service_; | 119 std::unique_ptr<CastService> cast_service_; |
117 | 120 |
118 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); | 121 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace shell | 124 } // namespace shell |
122 } // namespace chromecast | 125 } // namespace chromecast |
123 | 126 |
124 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 127 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
OLD | NEW |