Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: chromecast/browser/metrics/cast_metrics_service_client.h

Issue 1142513004: Chromecast: MessageLoopProxy cleanup --> SingleThreadTaskRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chromecast/browser/media/cma_message_loop.cc ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698