| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void InitializeSystemProfileMetrics( | 70 void InitializeSystemProfileMetrics( |
| 71 const base::Closure& done_callback) override; | 71 const base::Closure& done_callback) override; |
| 72 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 72 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 73 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( | 73 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( |
| 74 const std::string& server_url, | 74 const std::string& server_url, |
| 75 const std::string& mime_type, | 75 const std::string& mime_type, |
| 76 const base::Callback<void(int)>& on_upload_complete) override; | 76 const base::Callback<void(int)>& on_upload_complete) override; |
| 77 base::TimeDelta GetStandardUploadInterval() override; | 77 base::TimeDelta GetStandardUploadInterval() override; |
| 78 base::string16 GetRegistryBackupKey() override; | 78 base::string16 GetRegistryBackupKey() override; |
| 79 void OnRendererProcessCrash() override; | 79 void OnRendererProcessCrash() override; |
| 80 bool IsHistorySyncEnabledOnAllProfiles() override; |
| 80 | 81 |
| 81 // ukm::HistoryDeleteObserver: | 82 // ukm::HistoryDeleteObserver: |
| 82 void OnHistoryDeleted() override; | 83 void OnHistoryDeleted() override; |
| 83 | 84 |
| 84 // ukm::SyncDisableObserver: | 85 // ukm::SyncDisableObserver: |
| 85 void OnSyncPrefsChanged(bool must_purge) override; | 86 void OnSyncPrefsChanged(bool must_purge) override; |
| 86 | 87 |
| 87 // web::GlobalWebStateObserver: | 88 // web::GlobalWebStateObserver: |
| 88 void WebStateDidStartLoading(web::WebState* web_state) override; | 89 void WebStateDidStartLoading(web::WebState* web_state) override; |
| 89 void WebStateDidStopLoading(web::WebState* web_state) override; | 90 void WebStateDidStopLoading(web::WebState* web_state) override; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // Whether this client has already uploaded profiler data during this session. | 177 // Whether this client has already uploaded profiler data during this session. |
| 177 // Profiler data is uploaded at most once per session. | 178 // Profiler data is uploaded at most once per session. |
| 178 bool has_uploaded_profiler_data_; | 179 bool has_uploaded_profiler_data_; |
| 179 | 180 |
| 180 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; | 181 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); | 183 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 186 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |