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

Unified Diff: chrome/browser/io_thread.h

Issue 1818613002: Implement UMA log throttling for cellular connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api_unittest.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index fc27d9b337cfbd860cba165afa4e4088108874c7..7293dd591e4c0b7a60de739bc748cc576f2becb5 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -290,6 +290,9 @@ class IOThread : public content::BrowserThreadDelegate {
// a result of a field trial or a command line flag.
static bool ShouldEnableQuicForDataReductionProxy();
+ // Returns the callback for updating data use prefs.
+ const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
+
private:
// Map from name to value for all parameters associate with a field trial.
typedef std::map<std::string, std::string> VariationParameters;
@@ -598,6 +601,10 @@ class IOThread : public content::BrowserThreadDelegate {
const base::TimeTicks creation_time_;
+ // Callback for updating data use prefs which needs to be initialized on UI
+ // thread and passed to |ChromeNetworkDelegate|.
+ metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
+
base::WeakPtrFactory<IOThread> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(IOThread);
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api_unittest.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698