| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual void SetClientID(const std::string& client_id) OVERRIDE; | 55 virtual void SetClientID(const std::string& client_id) OVERRIDE; |
| 56 virtual bool IsOffTheRecordSessionActive() OVERRIDE; | 56 virtual bool IsOffTheRecordSessionActive() OVERRIDE; |
| 57 virtual std::string GetApplicationLocale() OVERRIDE; | 57 virtual std::string GetApplicationLocale() OVERRIDE; |
| 58 virtual bool GetBrand(std::string* brand_code) OVERRIDE; | 58 virtual bool GetBrand(std::string* brand_code) OVERRIDE; |
| 59 virtual metrics::SystemProfileProto::Channel GetChannel() OVERRIDE; | 59 virtual metrics::SystemProfileProto::Channel GetChannel() OVERRIDE; |
| 60 virtual std::string GetVersionString() OVERRIDE; | 60 virtual std::string GetVersionString() OVERRIDE; |
| 61 virtual int64 GetInstallDate() OVERRIDE; | |
| 62 virtual void OnLogUploadComplete() OVERRIDE; | 61 virtual void OnLogUploadComplete() OVERRIDE; |
| 63 virtual void StartGatheringMetrics( | 62 virtual void StartGatheringMetrics( |
| 64 const base::Closure& done_callback) OVERRIDE; | 63 const base::Closure& done_callback) OVERRIDE; |
| 65 virtual void CollectFinalMetrics(const base::Closure& done_callback) | 64 virtual void CollectFinalMetrics(const base::Closure& done_callback) |
| 66 OVERRIDE; | 65 OVERRIDE; |
| 67 virtual scoped_ptr<metrics::MetricsLogUploader> CreateUploader( | 66 virtual scoped_ptr<metrics::MetricsLogUploader> CreateUploader( |
| 68 const std::string& server_url, | 67 const std::string& server_url, |
| 69 const std::string& mime_type, | 68 const std::string& mime_type, |
| 70 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; | 69 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; |
| 71 | 70 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // The MemoryGrowthTracker instance that tracks memory usage growth in | 168 // The MemoryGrowthTracker instance that tracks memory usage growth in |
| 170 // MemoryDetails. | 169 // MemoryDetails. |
| 171 MemoryGrowthTracker memory_growth_tracker_; | 170 MemoryGrowthTracker memory_growth_tracker_; |
| 172 | 171 |
| 173 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 172 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
| 174 | 173 |
| 175 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 174 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 177 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |