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 14 matching lines...) Expand all Loading... |
25 virtual bool IsOffTheRecordSessionActive() OVERRIDE; | 25 virtual bool IsOffTheRecordSessionActive() OVERRIDE; |
26 virtual std::string GetApplicationLocale() OVERRIDE; | 26 virtual std::string GetApplicationLocale() OVERRIDE; |
27 virtual bool GetBrand(std::string* brand_code) OVERRIDE; | 27 virtual bool GetBrand(std::string* brand_code) OVERRIDE; |
28 virtual SystemProfileProto::Channel GetChannel() OVERRIDE; | 28 virtual SystemProfileProto::Channel GetChannel() OVERRIDE; |
29 virtual std::string GetVersionString() OVERRIDE; | 29 virtual std::string GetVersionString() OVERRIDE; |
30 virtual void OnLogUploadComplete() OVERRIDE; | 30 virtual void OnLogUploadComplete() OVERRIDE; |
31 virtual void StartGatheringMetrics( | 31 virtual void StartGatheringMetrics( |
32 const base::Closure& done_callback) OVERRIDE; | 32 const base::Closure& done_callback) OVERRIDE; |
33 virtual void CollectFinalMetrics(const base::Closure& done_callback) | 33 virtual void CollectFinalMetrics(const base::Closure& done_callback) |
34 OVERRIDE; | 34 OVERRIDE; |
| 35 virtual scoped_ptr<MetricsLogUploader> CreateUploader( |
| 36 const std::string& server_url, |
| 37 const std::string& mime_type, |
| 38 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; |
35 | 39 |
36 const std::string& get_client_id() const { return client_id_; } | 40 const std::string& get_client_id() const { return client_id_; } |
37 | 41 |
38 private: | 42 private: |
39 std::string client_id_; | 43 std::string client_id_; |
40 }; | 44 }; |
41 | 45 |
42 } // namespace metrics | 46 } // namespace metrics |
43 | 47 |
44 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ | 48 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |