| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual std::string GetVersionString() OVERRIDE; | 64 virtual std::string GetVersionString() OVERRIDE; |
| 65 virtual void OnLogUploadComplete() OVERRIDE; | 65 virtual void OnLogUploadComplete() OVERRIDE; |
| 66 virtual void StartGatheringMetrics( | 66 virtual void StartGatheringMetrics( |
| 67 const base::Closure& done_callback) OVERRIDE; | 67 const base::Closure& done_callback) OVERRIDE; |
| 68 virtual void CollectFinalMetrics(const base::Closure& done_callback) | 68 virtual void CollectFinalMetrics(const base::Closure& done_callback) |
| 69 OVERRIDE; | 69 OVERRIDE; |
| 70 virtual scoped_ptr<metrics::MetricsLogUploader> CreateUploader( | 70 virtual scoped_ptr<metrics::MetricsLogUploader> CreateUploader( |
| 71 const std::string& server_url, | 71 const std::string& server_url, |
| 72 const std::string& mime_type, | 72 const std::string& mime_type, |
| 73 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; | 73 const base::Callback<void(int)>& on_upload_complete) OVERRIDE; |
| 74 #if defined(OS_WIN) |
| 75 virtual base::string16 GetRegistryBackupKey() OVERRIDE; |
| 76 #endif |
| 74 | 77 |
| 75 metrics::MetricsService* metrics_service() { return metrics_service_.get(); } | 78 metrics::MetricsService* metrics_service() { return metrics_service_.get(); } |
| 76 | 79 |
| 77 void LogPluginLoadingError(const base::FilePath& plugin_path); | 80 void LogPluginLoadingError(const base::FilePath& plugin_path); |
| 78 | 81 |
| 79 private: | 82 private: |
| 80 explicit ChromeMetricsServiceClient( | 83 explicit ChromeMetricsServiceClient( |
| 81 metrics::MetricsStateManager* state_manager); | 84 metrics::MetricsStateManager* state_manager); |
| 82 | 85 |
| 83 // Completes the two-phase initialization of ChromeMetricsServiceClient. | 86 // Completes the two-phase initialization of ChromeMetricsServiceClient. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // The MemoryGrowthTracker instance that tracks memory usage growth in | 181 // The MemoryGrowthTracker instance that tracks memory usage growth in |
| 179 // MemoryDetails. | 182 // MemoryDetails. |
| 180 MemoryGrowthTracker memory_growth_tracker_; | 183 MemoryGrowthTracker memory_growth_tracker_; |
| 181 | 184 |
| 182 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 185 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
| 183 | 186 |
| 184 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 187 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
| 185 }; | 188 }; |
| 186 | 189 |
| 187 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 190 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |