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

Side by Side Diff: components/metrics/test_metrics_service_client.h

Issue 2774503002: Track network stack error codes from UMA and UKM (Closed)
Patch Set: Rebase on Created 3 years, 8 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 bool GetBrand(std::string* brand_code) override; 33 bool GetBrand(std::string* brand_code) override;
34 SystemProfileProto::Channel GetChannel() override; 34 SystemProfileProto::Channel GetChannel() override;
35 std::string GetVersionString() override; 35 std::string GetVersionString() override;
36 void InitializeSystemProfileMetrics( 36 void InitializeSystemProfileMetrics(
37 const base::Closure& done_callback) override; 37 const base::Closure& done_callback) override;
38 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 38 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
39 std::unique_ptr<MetricsLogUploader> CreateUploader( 39 std::unique_ptr<MetricsLogUploader> CreateUploader(
40 base::StringPiece server_url, 40 base::StringPiece server_url,
41 base::StringPiece mime_type, 41 base::StringPiece mime_type,
42 MetricsLogUploader::MetricServiceType service_type, 42 MetricsLogUploader::MetricServiceType service_type,
43 const base::Callback<void(int)>& on_upload_complete) override; 43 const MetricsLogUploader::UploadCallback& on_upload_complete) override;
44 base::TimeDelta GetStandardUploadInterval() override; 44 base::TimeDelta GetStandardUploadInterval() override;
45 bool IsReportingPolicyManaged() override; 45 bool IsReportingPolicyManaged() override;
46 EnableMetricsDefault GetMetricsReportingDefaultState() override; 46 EnableMetricsDefault GetMetricsReportingDefaultState() override;
47 47
48 const std::string& get_client_id() const { return client_id_; } 48 const std::string& get_client_id() const { return client_id_; }
49 // Returns a weak ref to the last created uploader. 49 // Returns a weak ref to the last created uploader.
50 TestMetricsLogUploader* uploader() { return uploader_; } 50 TestMetricsLogUploader* uploader() { return uploader_; }
51 void set_version_string(const std::string& str) { version_string_ = str; } 51 void set_version_string(const std::string& str) { version_string_ = str; }
52 void set_product(int32_t product) { product_ = product; } 52 void set_product(int32_t product) { product_ = product; }
53 void set_reporting_is_managed(bool managed) { 53 void set_reporting_is_managed(bool managed) {
(...skipping 12 matching lines...) Expand all
66 66
67 // A weak ref to the last created TestMetricsLogUploader. 67 // A weak ref to the last created TestMetricsLogUploader.
68 TestMetricsLogUploader* uploader_; 68 TestMetricsLogUploader* uploader_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient); 70 DISALLOW_COPY_AND_ASSIGN(TestMetricsServiceClient);
71 }; 71 };
72 72
73 } // namespace metrics 73 } // namespace metrics
74 74
75 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_ 75 #endif // COMPONENTS_METRICS_TEST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_log_uploader.cc ('k') | components/metrics/test_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698