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

Unified Diff: components/data_use_measurement/core/data_use_ascriber.h

Issue 2583703002: Record the tab state during data use (Closed)
Patch Set: minor fix Created 4 years 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: components/data_use_measurement/core/data_use_ascriber.h
diff --git a/components/data_use_measurement/core/data_use_ascriber.h b/components/data_use_measurement/core/data_use_ascriber.h
index eb591e1cb388968757cd8c4d35b92c002a4ef0d3..78f2b3813aa8939cadb8098522613f88e3fac334 100644
--- a/components/data_use_measurement/core/data_use_ascriber.h
+++ b/components/data_use_measurement/core/data_use_ascriber.h
@@ -39,9 +39,14 @@ class DataUseAscriber {
// Returns the DataUseRecorder to which data usage for the given URL should
// be ascribed. If no existing DataUseRecorder exists, a new one will be
- // created only if |can_create_new| is true.
- virtual DataUseRecorder* GetDataUseRecorder(net::URLRequest* request,
- bool can_create_new) = 0;
+ // created.
+ virtual DataUseRecorder* GetOrCreateDataUseRecorder(
+ net::URLRequest* request) = 0;
+
+ // Returns the existing DataUseRecorder to which data usage for the given URL
+ // should be ascribed.
+ virtual DataUseRecorder* GetDataUseRecorder(
+ const net::URLRequest& request) = 0;
// Returns a URLRequestClassifier that can classify requests for metrics
// recording.

Powered by Google App Engine
This is Rietveld 408576698