| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static void RegisterPrefs(PrefRegistrySimple* registry); | 46 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 47 | 47 |
| 48 // metrics::MetricsServiceClient: | 48 // metrics::MetricsServiceClient: |
| 49 metrics::MetricsService* GetMetricsService() override; | 49 metrics::MetricsService* GetMetricsService() override; |
| 50 void SetMetricsClientId(const std::string& client_id) override; | 50 void SetMetricsClientId(const std::string& client_id) override; |
| 51 int32_t GetProduct() override; | 51 int32_t GetProduct() override; |
| 52 std::string GetApplicationLocale() override; | 52 std::string GetApplicationLocale() override; |
| 53 bool GetBrand(std::string* brand_code) override; | 53 bool GetBrand(std::string* brand_code) override; |
| 54 metrics::SystemProfileProto::Channel GetChannel() override; | 54 metrics::SystemProfileProto::Channel GetChannel() override; |
| 55 std::string GetVersionString() override; | 55 std::string GetVersionString() override; |
| 56 void OnLogUploadComplete() override; | |
| 57 void InitializeSystemProfileMetrics( | 56 void InitializeSystemProfileMetrics( |
| 58 const base::Closure& done_callback) override; | 57 const base::Closure& done_callback) override; |
| 59 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 58 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 60 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( | 59 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( |
| 61 const std::string& server_url, | 60 const std::string& server_url, |
| 62 const std::string& mime_type, | 61 const std::string& mime_type, |
| 63 const base::Callback<void(int)>& on_upload_complete) override; | 62 const base::Callback<void(int)>& on_upload_complete) override; |
| 64 base::TimeDelta GetStandardUploadInterval() override; | 63 base::TimeDelta GetStandardUploadInterval() override; |
| 65 base::string16 GetRegistryBackupKey() override; | 64 base::string16 GetRegistryBackupKey() override; |
| 66 void OnRendererProcessCrash() override; | 65 void OnRendererProcessCrash() override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Whether this client has already uploaded profiler data during this session. | 150 // Whether this client has already uploaded profiler data during this session. |
| 152 // Profiler data is uploaded at most once per session. | 151 // Profiler data is uploaded at most once per session. |
| 153 bool has_uploaded_profiler_data_; | 152 bool has_uploaded_profiler_data_; |
| 154 | 153 |
| 155 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; | 154 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; |
| 156 | 155 |
| 157 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); | 156 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 159 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |