| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 static std::unique_ptr<IOSChromeMetricsServiceClient> Create( | 47 static std::unique_ptr<IOSChromeMetricsServiceClient> Create( |
| 48 metrics::MetricsStateManager* state_manager, | 48 metrics::MetricsStateManager* state_manager, |
| 49 PrefService* local_state); | 49 PrefService* local_state); |
| 50 | 50 |
| 51 // Registers local state prefs used by this class. | 51 // Registers local state prefs used by this class. |
| 52 static void RegisterPrefs(PrefRegistrySimple* registry); | 52 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 53 | 53 |
| 54 // metrics::MetricsServiceClient: | 54 // metrics::MetricsServiceClient: |
| 55 metrics::MetricsService* GetMetricsService() override; | 55 metrics::MetricsService* GetMetricsService() override; |
| 56 void SetMetricsClientId(const std::string& client_id) override; | 56 void SetMetricsClientId(const std::string& client_id) override; |
| 57 void OnRecordingDisabled() override; | |
| 58 bool IsOffTheRecordSessionActive() override; | 57 bool IsOffTheRecordSessionActive() override; |
| 59 int32_t GetProduct() override; | 58 int32_t GetProduct() override; |
| 60 std::string GetApplicationLocale() override; | 59 std::string GetApplicationLocale() override; |
| 61 bool GetBrand(std::string* brand_code) override; | 60 bool GetBrand(std::string* brand_code) override; |
| 62 metrics::SystemProfileProto::Channel GetChannel() override; | 61 metrics::SystemProfileProto::Channel GetChannel() override; |
| 63 std::string GetVersionString() override; | 62 std::string GetVersionString() override; |
| 64 void OnLogUploadComplete() override; | 63 void OnLogUploadComplete() override; |
| 65 void InitializeSystemProfileMetrics( | 64 void InitializeSystemProfileMetrics( |
| 66 const base::Closure& done_callback) override; | 65 const base::Closure& done_callback) override; |
| 67 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 66 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // Whether this client has already uploaded profiler data during this session. | 156 // Whether this client has already uploaded profiler data during this session. |
| 158 // Profiler data is uploaded at most once per session. | 157 // Profiler data is uploaded at most once per session. |
| 159 bool has_uploaded_profiler_data_; | 158 bool has_uploaded_profiler_data_; |
| 160 | 159 |
| 161 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; | 160 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; |
| 162 | 161 |
| 163 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); | 162 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); |
| 164 }; | 163 }; |
| 165 | 164 |
| 166 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 165 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |