| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ |
| 6 #define BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ | 6 #define BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // The request_context_getter is a system request context. | 40 // The request_context_getter is a system request context. |
| 41 // Both must remain valid for client lifetime. | 41 // Both must remain valid for client lifetime. |
| 42 BlimpMetricsServiceClient( | 42 BlimpMetricsServiceClient( |
| 43 PrefService* pref_service, | 43 PrefService* pref_service, |
| 44 scoped_refptr<net::URLRequestContextGetter> request_context_getter); | 44 scoped_refptr<net::URLRequestContextGetter> request_context_getter); |
| 45 ~BlimpMetricsServiceClient() override; | 45 ~BlimpMetricsServiceClient() override; |
| 46 | 46 |
| 47 // metrics::MetricsServiceClient implementation. | 47 // metrics::MetricsServiceClient implementation. |
| 48 metrics::MetricsService* GetMetricsService() override; | 48 metrics::MetricsService* GetMetricsService() override; |
| 49 void SetMetricsClientId(const std::string& client_id) override; | 49 void SetMetricsClientId(const std::string& client_id) override; |
| 50 bool IsOffTheRecordSessionActive() override; | |
| 51 int32_t GetProduct() override; | 50 int32_t GetProduct() override; |
| 52 std::string GetApplicationLocale() override; | 51 std::string GetApplicationLocale() override; |
| 53 bool GetBrand(std::string* brand_code) override; | 52 bool GetBrand(std::string* brand_code) override; |
| 54 metrics::SystemProfileProto::Channel GetChannel() override; | 53 metrics::SystemProfileProto::Channel GetChannel() override; |
| 55 std::string GetVersionString() override; | 54 std::string GetVersionString() override; |
| 56 void OnLogUploadComplete() override; | 55 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( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 74 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; | 73 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; |
| 75 std::unique_ptr<metrics::MetricsService> metrics_service_; | 74 std::unique_ptr<metrics::MetricsService> metrics_service_; |
| 76 | 75 |
| 77 DISALLOW_COPY_AND_ASSIGN(BlimpMetricsServiceClient); | 76 DISALLOW_COPY_AND_ASSIGN(BlimpMetricsServiceClient); |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 } // namespace engine | 79 } // namespace engine |
| 81 } // namespace blimp | 80 } // namespace blimp |
| 82 | 81 |
| 83 #endif // BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ | 82 #endif // BLIMP_ENGINE_APP_BLIMP_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |