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

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

Issue 521943002: Chromecast: rm explicit constructor on CastMetricsServiceClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void CollectFinalMetrics(const base::Closure& done_callback) OVERRIDE; 47 virtual void CollectFinalMetrics(const base::Closure& done_callback) OVERRIDE;
48 virtual scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader( 48 virtual scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader(
49 const std::string& server_url, 49 const std::string& server_url,
50 const std::string& mime_type, 50 const std::string& mime_type,
51 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; 51 const base::Callback<void(int)>& on_upload_complete) OVERRIDE;
52 52
53 // Starts/stops the metrics service. 53 // Starts/stops the metrics service.
54 void EnableMetricsService(bool enabled); 54 void EnableMetricsService(bool enabled);
55 55
56 private: 56 private:
57 explicit CastMetricsServiceClient( 57 CastMetricsServiceClient(
58 PrefService* pref_service, 58 PrefService* pref_service,
59 net::URLRequestContextGetter* request_context); 59 net::URLRequestContextGetter* request_context);
60 60
61 // Returns whether or not metrics reporting is enabled. 61 // Returns whether or not metrics reporting is enabled.
62 bool IsReportingEnabled(); 62 bool IsReportingEnabled();
63 63
64 scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_; 64 scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_;
65 scoped_ptr< ::metrics::MetricsService> metrics_service_; 65 scoped_ptr< ::metrics::MetricsService> metrics_service_;
66 net::URLRequestContextGetter* request_context_; 66 net::URLRequestContextGetter* request_context_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 68 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
69 }; 69 };
70 70
71 } // namespace metrics 71 } // namespace metrics
72 } // namespace chromecast 72 } // namespace chromecast
73 73
74 #endif // CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 74 #endif // CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698