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" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool IsOffTheRecordSessionActive() override; | 54 bool IsOffTheRecordSessionActive() override; |
55 int32_t GetProduct() override; | 55 int32_t GetProduct() override; |
56 std::string GetApplicationLocale() override; | 56 std::string GetApplicationLocale() override; |
57 bool GetBrand(std::string* brand_code) override; | 57 bool GetBrand(std::string* brand_code) override; |
58 ::metrics::SystemProfileProto::Channel GetChannel() override; | 58 ::metrics::SystemProfileProto::Channel GetChannel() override; |
59 std::string GetVersionString() override; | 59 std::string GetVersionString() override; |
60 void OnLogUploadComplete() override; | 60 void OnLogUploadComplete() override; |
61 void StartGatheringMetrics(const base::Closure& done_callback) override; | 61 void StartGatheringMetrics(const base::Closure& done_callback) override; |
62 void CollectFinalMetrics(const base::Closure& done_callback) override; | 62 void CollectFinalMetrics(const base::Closure& done_callback) override; |
63 scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader( | 63 scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader( |
64 const std::string& server_url, | |
65 const std::string& mime_type, | |
66 const base::Callback<void(int)>& on_upload_complete) override; | 64 const base::Callback<void(int)>& on_upload_complete) override; |
67 | 65 |
68 // Starts/stops the metrics service. | 66 // Starts/stops the metrics service. |
69 void EnableMetricsService(bool enabled); | 67 void EnableMetricsService(bool enabled); |
70 | 68 |
71 std::string client_id() const { | 69 std::string client_id() const { |
72 return client_id_; | 70 return client_id_; |
73 } | 71 } |
74 | 72 |
75 private: | 73 private: |
(...skipping 21 matching lines...) Expand all Loading... |
97 scoped_ptr< ::metrics::MetricsService> metrics_service_; | 95 scoped_ptr< ::metrics::MetricsService> metrics_service_; |
98 net::URLRequestContextGetter* const request_context_; | 96 net::URLRequestContextGetter* const request_context_; |
99 | 97 |
100 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 98 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
101 }; | 99 }; |
102 | 100 |
103 } // namespace metrics | 101 } // namespace metrics |
104 } // namespace chromecast | 102 } // namespace chromecast |
105 | 103 |
106 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 104 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |