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