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

Unified Diff: chrome/browser/android/data_usage/external_data_use_observer_bridge.h

Issue 1582043002: Add histograms for data usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 11 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
Index: chrome/browser/android/data_usage/external_data_use_observer_bridge.h
diff --git a/chrome/browser/android/data_usage/external_data_use_observer_bridge.h b/chrome/browser/android/data_usage/external_data_use_observer_bridge.h
index 2727c4074901f4ee9a56f3fd69406092ca6f2bda..9611f907fc6a2ff3f438f922a32f5e8fc56a9905 100644
--- a/chrome/browser/android/data_usage/external_data_use_observer_bridge.h
+++ b/chrome/browser/android/data_usage/external_data_use_observer_bridge.h
@@ -21,6 +21,7 @@
namespace base {
class SingleThreadTaskRunner;
class Time;
+class TimeTicks;
}
namespace chrome {
@@ -50,7 +51,7 @@ class ExternalDataUseObserverBridge {
// Fetches matching rules from Java. Returns result asynchronously via
// FetchMatchingRulesDone. FetchMatchingRules should not be called if a
// fetch to matching rules is already in progress.
- void FetchMatchingRules() const;
+ void FetchMatchingRules();
// Called by Java when new matching rules have been fetched.
// |app_package_name| is the package name of the app that should be matched.
@@ -101,6 +102,9 @@ class ExternalDataUseObserverBridge {
// |data_use_tab_model_| is notified of the matching rules on UI thread.
base::WeakPtr<DataUseTabModel> data_use_tab_model_;
+ // The time of request when the matching rules are fetched for the first time.
+ base::TimeTicks matching_rules_first_fetch_time_;
+
// |io_task_runner_| accesses ExternalDataUseObserver members on IO thread.
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698