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 virtual base::string16 GetRegistryBackupKey() OVERRIDE; |
74 | 75 |
75 metrics::MetricsService* metrics_service() { return metrics_service_.get(); } | 76 metrics::MetricsService* metrics_service() { return metrics_service_.get(); } |
76 | 77 |
77 void LogPluginLoadingError(const base::FilePath& plugin_path); | 78 void LogPluginLoadingError(const base::FilePath& plugin_path); |
78 | 79 |
79 private: | 80 private: |
80 explicit ChromeMetricsServiceClient( | 81 explicit ChromeMetricsServiceClient( |
81 metrics::MetricsStateManager* state_manager); | 82 metrics::MetricsStateManager* state_manager); |
82 | 83 |
83 // Completes the two-phase initialization of ChromeMetricsServiceClient. | 84 // 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 | 179 // The MemoryGrowthTracker instance that tracks memory usage growth in |
179 // MemoryDetails. | 180 // MemoryDetails. |
180 MemoryGrowthTracker memory_growth_tracker_; | 181 MemoryGrowthTracker memory_growth_tracker_; |
181 | 182 |
182 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 183 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
183 | 184 |
184 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 185 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
185 }; | 186 }; |
186 | 187 |
187 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 188 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |