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

Side by Side Diff: components/ukm/ukm_reporting_service.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 // This file defines a service that sends ukm logs to a server. 5 // This file defines a service that sends ukm logs to a server.
6 6
7 #ifndef COMPONENTS_UKM_UKM_REPORTING_SERVICE_H_ 7 #ifndef COMPONENTS_UKM_UKM_REPORTING_SERVICE_H_
8 #define COMPONENTS_UKM_UKM_REPORTING_SERVICE_H_ 8 #define COMPONENTS_UKM_UKM_REPORTING_SERVICE_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return &persisted_logs_; 44 return &persisted_logs_;
45 } 45 }
46 46
47 private: 47 private:
48 // metrics:ReportingService: 48 // metrics:ReportingService:
49 metrics::LogStore* log_store() override; 49 metrics::LogStore* log_store() override;
50 std::string GetUploadUrl() const override; 50 std::string GetUploadUrl() const override;
51 base::StringPiece upload_mime_type() const override; 51 base::StringPiece upload_mime_type() const override;
52 metrics::MetricsLogUploader::MetricServiceType service_type() const override; 52 metrics::MetricsLogUploader::MetricServiceType service_type() const override;
53 void LogCellularConstraint(bool upload_canceled) override; 53 void LogCellularConstraint(bool upload_canceled) override;
54 void LogResponseCode(int response_code) override; 54 void LogResponseOrErrorCode(int response_code, int error_code) override;
55 void LogSuccess(size_t log_size) override; 55 void LogSuccess(size_t log_size) override;
56 void LogLargeRejection(size_t log_size) override; 56 void LogLargeRejection(size_t log_size) override;
57 57
58 metrics::PersistedLogs persisted_logs_; 58 metrics::PersistedLogs persisted_logs_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(UkmReportingService); 60 DISALLOW_COPY_AND_ASSIGN(UkmReportingService);
61 }; 61 };
62 62
63 } // namespace ukm 63 } // namespace ukm
64 64
65 #endif // COMPONENTS_UKM_UKM_REPORTING_SERVICE_H_ 65 #endif // COMPONENTS_UKM_UKM_REPORTING_SERVICE_H_
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.cc ('k') | components/ukm/ukm_reporting_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698