Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 1818613002: Implement UMA log throttling for cellular connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: singleton pattern removed Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 10 #include <string>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 std::string GetVersionString() override; 68 std::string GetVersionString() override;
69 void OnLogUploadComplete() override; 69 void OnLogUploadComplete() override;
70 void InitializeSystemProfileMetrics( 70 void InitializeSystemProfileMetrics(
71 const base::Closure& done_callback) override; 71 const base::Closure& done_callback) override;
72 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 72 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
73 scoped_ptr<metrics::MetricsLogUploader> CreateUploader( 73 scoped_ptr<metrics::MetricsLogUploader> CreateUploader(
74 const base::Callback<void(int)>& on_upload_complete) override; 74 const base::Callback<void(int)>& on_upload_complete) override;
75 base::TimeDelta GetStandardUploadInterval() override; 75 base::TimeDelta GetStandardUploadInterval() override;
76 base::string16 GetRegistryBackupKey() override; 76 base::string16 GetRegistryBackupKey() override;
77 void OnPluginLoadingError(const base::FilePath& plugin_path) override; 77 void OnPluginLoadingError(const base::FilePath& plugin_path) override;
78 void IsCellularLogicEnabled(bool* out_is_enabled);
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.
84 void Initialize(); 85 void Initialize();
85 86
86 // Callback that continues the init task by getting a Bluetooth Adapter. 87 // Callback that continues the init task by getting a Bluetooth Adapter.
87 void OnInitTaskGotHardwareClass(); 88 void OnInitTaskGotHardwareClass();
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // Whether this client has already uploaded profiler data during this session. 210 // Whether this client has already uploaded profiler data during this session.
210 // Profiler data is uploaded at most once per session. 211 // Profiler data is uploaded at most once per session.
211 bool has_uploaded_profiler_data_; 212 bool has_uploaded_profiler_data_;
212 213
213 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 214 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 216 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
216 }; 217 };
217 218
218 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 219 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698