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_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
6 #define CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROMECAST_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 TaskRunner; | 19 class TaskRunner; |
19 } | 20 } |
20 | 21 |
21 namespace metrics { | 22 namespace metrics { |
22 class MetricsService; | 23 class MetricsService; |
23 class MetricsStateManager; | 24 class MetricsStateManager; |
24 } // namespace metrics | 25 } // namespace metrics |
25 | 26 |
26 namespace net { | 27 namespace net { |
27 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 CastMetricsServiceClient( | 63 CastMetricsServiceClient( |
63 base::TaskRunner* io_task_runner, | 64 base::TaskRunner* io_task_runner, |
64 PrefService* pref_service, | 65 PrefService* pref_service, |
65 net::URLRequestContextGetter* request_context); | 66 net::URLRequestContextGetter* request_context); |
66 | 67 |
67 // Returns whether or not metrics reporting is enabled. | 68 // Returns whether or not metrics reporting is enabled. |
68 bool IsReportingEnabled(); | 69 bool IsReportingEnabled(); |
69 | 70 |
70 scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_; | 71 scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_; |
71 scoped_ptr< ::metrics::MetricsService> metrics_service_; | 72 scoped_ptr< ::metrics::MetricsService> metrics_service_; |
| 73 scoped_refptr<base::MessageLoopProxy> metrics_service_loop_; |
72 net::URLRequestContextGetter* request_context_; | 74 net::URLRequestContextGetter* request_context_; |
73 | 75 |
74 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 76 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
75 }; | 77 }; |
76 | 78 |
77 } // namespace metrics | 79 } // namespace metrics |
78 } // namespace chromecast | 80 } // namespace chromecast |
79 | 81 |
80 #endif // CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 82 #endif // CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |