OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool GetBrand(std::string* brand_code) override; | 68 bool GetBrand(std::string* brand_code) override; |
69 metrics::SystemProfileProto::Channel GetChannel() override; | 69 metrics::SystemProfileProto::Channel GetChannel() override; |
70 std::string GetVersionString() override; | 70 std::string GetVersionString() override; |
71 void InitializeSystemProfileMetrics( | 71 void InitializeSystemProfileMetrics( |
72 const base::Closure& done_callback) override; | 72 const base::Closure& done_callback) override; |
73 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 73 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
74 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( | 74 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( |
75 base::StringPiece server_url, | 75 base::StringPiece server_url, |
76 base::StringPiece mime_type, | 76 base::StringPiece mime_type, |
77 metrics::MetricsLogUploader::MetricServiceType service_type, | 77 metrics::MetricsLogUploader::MetricServiceType service_type, |
78 const base::Callback<void(int)>& on_upload_complete) override; | 78 const metrics::MetricsLogUploader::UploadCallback& on_upload_complete) |
| 79 override; |
79 base::TimeDelta GetStandardUploadInterval() override; | 80 base::TimeDelta GetStandardUploadInterval() override; |
80 base::string16 GetRegistryBackupKey() override; | 81 base::string16 GetRegistryBackupKey() override; |
81 void OnRendererProcessCrash() override; | 82 void OnRendererProcessCrash() override; |
82 bool IsHistorySyncEnabledOnAllProfiles() override; | 83 bool IsHistorySyncEnabledOnAllProfiles() override; |
83 | 84 |
84 // ukm::HistoryDeleteObserver: | 85 // ukm::HistoryDeleteObserver: |
85 void OnHistoryDeleted() override; | 86 void OnHistoryDeleted() override; |
86 | 87 |
87 // ukm::SyncDisableObserver: | 88 // ukm::SyncDisableObserver: |
88 void OnSyncPrefsChanged(bool must_purge) override; | 89 void OnSyncPrefsChanged(bool must_purge) override; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Whether this client has already uploaded profiler data during this session. | 180 // Whether this client has already uploaded profiler data during this session. |
180 // Profiler data is uploaded at most once per session. | 181 // Profiler data is uploaded at most once per session. |
181 bool has_uploaded_profiler_data_; | 182 bool has_uploaded_profiler_data_; |
182 | 183 |
183 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; | 184 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; |
184 | 185 |
185 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); | 186 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); |
186 }; | 187 }; |
187 | 188 |
188 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 189 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |