| 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 COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
| 6 #define COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 6 #define COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/metrics/metrics_service_client.h" | 10 #include "components/metrics/metrics_service_client.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const base::Closure& done_callback) OVERRIDE; | 33 const base::Closure& done_callback) OVERRIDE; |
| 34 virtual void CollectFinalMetrics(const base::Closure& done_callback) | 34 virtual void CollectFinalMetrics(const base::Closure& done_callback) |
| 35 OVERRIDE; | 35 OVERRIDE; |
| 36 virtual scoped_ptr<MetricsLogUploader> CreateUploader( | 36 virtual scoped_ptr<MetricsLogUploader> CreateUploader( |
| 37 const std::string& server_url, | 37 const std::string& server_url, |
| 38 const std::string& mime_type, | 38 const std::string& mime_type, |
| 39 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; | 39 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; |
| 40 | 40 |
| 41 const std::string& get_client_id() const { return client_id_; } | 41 const std::string& get_client_id() const { return client_id_; } |
| 42 void set_install_date(int64 install_date) { install_date_ = install_date; } | 42 void set_install_date(int64 install_date) { install_date_ = install_date; } |
| 43 void set_version_string(const std::string& str) { version_string_ = str; } |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 std::string client_id_; | 46 std::string client_id_; |
| 46 int64 install_date_; | 47 int64 install_date_; |
| 48 std::string version_string_; |
| 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace metrics | 53 } // namespace metrics |
| 50 | 54 |
| 51 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 55 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |