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_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
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 "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "components/metrics/metrics_service_client.h" | 13 #include "components/metrics/metrics_service_client.h" |
14 | 14 |
15 class PrefService; | 15 class PrefService; |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class MessageLoopProxy; | 18 class SingleThreadTaskRunner; |
19 class TaskRunner; | 19 class TaskRunner; |
20 } | 20 } |
21 | 21 |
22 namespace metrics { | 22 namespace metrics { |
23 struct ClientInfo; | 23 struct ClientInfo; |
24 class MetricsService; | 24 class MetricsService; |
25 class MetricsStateManager; | 25 class MetricsStateManager; |
26 } // namespace metrics | 26 } // namespace metrics |
27 | 27 |
28 namespace net { | 28 namespace net { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void StoreClientInfo(const ::metrics::ClientInfo& client_info); | 85 void StoreClientInfo(const ::metrics::ClientInfo& client_info); |
86 | 86 |
87 base::TaskRunner* const io_task_runner_; | 87 base::TaskRunner* const io_task_runner_; |
88 PrefService* const pref_service_; | 88 PrefService* const pref_service_; |
89 CastService* cast_service_; | 89 CastService* cast_service_; |
90 std::string client_id_; | 90 std::string client_id_; |
91 | 91 |
92 #if defined(OS_LINUX) | 92 #if defined(OS_LINUX) |
93 ExternalMetrics* external_metrics_; | 93 ExternalMetrics* external_metrics_; |
94 #endif // defined(OS_LINUX) | 94 #endif // defined(OS_LINUX) |
95 const scoped_refptr<base::MessageLoopProxy> metrics_service_loop_; | 95 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
96 scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_; | 96 scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_; |
97 scoped_ptr< ::metrics::MetricsService> metrics_service_; | 97 scoped_ptr< ::metrics::MetricsService> metrics_service_; |
98 net::URLRequestContextGetter* const request_context_; | 98 net::URLRequestContextGetter* const request_context_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 100 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace metrics | 103 } // namespace metrics |
104 } // namespace chromecast | 104 } // namespace chromecast |
105 | 105 |
106 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 106 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |