| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Factory function. | 52 // Factory function. |
| 53 static std::unique_ptr<ChromeMetricsServiceClient> Create( | 53 static std::unique_ptr<ChromeMetricsServiceClient> Create( |
| 54 metrics::MetricsStateManager* state_manager); | 54 metrics::MetricsStateManager* state_manager); |
| 55 | 55 |
| 56 // Registers local state prefs used by this class. | 56 // Registers local state prefs used by this class. |
| 57 static void RegisterPrefs(PrefRegistrySimple* registry); | 57 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 58 | 58 |
| 59 // metrics::MetricsServiceClient: | 59 // metrics::MetricsServiceClient: |
| 60 metrics::MetricsService* GetMetricsService() override; | 60 metrics::MetricsService* GetMetricsService() override; |
| 61 void SetMetricsClientId(const std::string& client_id) override; | 61 void SetMetricsClientId(const std::string& client_id) override; |
| 62 bool IsOffTheRecordSessionActive() override; | |
| 63 int32_t GetProduct() override; | 62 int32_t GetProduct() override; |
| 64 std::string GetApplicationLocale() override; | 63 std::string GetApplicationLocale() override; |
| 65 bool GetBrand(std::string* brand_code) override; | 64 bool GetBrand(std::string* brand_code) override; |
| 66 metrics::SystemProfileProto::Channel GetChannel() override; | 65 metrics::SystemProfileProto::Channel GetChannel() override; |
| 67 std::string GetVersionString() override; | 66 std::string GetVersionString() override; |
| 68 void OnLogUploadComplete() override; | 67 void OnLogUploadComplete() override; |
| 69 void InitializeSystemProfileMetrics( | 68 void InitializeSystemProfileMetrics( |
| 70 const base::Closure& done_callback) override; | 69 const base::Closure& done_callback) override; |
| 71 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 70 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 72 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( | 71 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // Whether this client has already uploaded profiler data during this session. | 225 // Whether this client has already uploaded profiler data during this session. |
| 227 // Profiler data is uploaded at most once per session. | 226 // Profiler data is uploaded at most once per session. |
| 228 bool has_uploaded_profiler_data_; | 227 bool has_uploaded_profiler_data_; |
| 229 | 228 |
| 230 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 229 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
| 231 | 230 |
| 232 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 231 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
| 233 }; | 232 }; |
| 234 | 233 |
| 235 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 234 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |