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

Unified Diff: components/data_use_measurement/content/content_url_request_classifier.h

Issue 2595503002: Record the data use by content type (Closed)
Patch Set: fixed nits 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/content/content_url_request_classifier.h
diff --git a/components/data_use_measurement/content/content_url_request_classifier.h b/components/data_use_measurement/content/content_url_request_classifier.h
index 2e102bb782fb2b34df0faa6ef000b4b88433c167..8b978fed77354f73b7a0787d78ec0916dd592f49 100644
--- a/components/data_use_measurement/content/content_url_request_classifier.h
+++ b/components/data_use_measurement/content/content_url_request_classifier.h
@@ -19,6 +19,10 @@ bool IsUserRequest(const net::URLRequest& request);
class ContentURLRequestClassifier : public URLRequestClassifier {
public:
bool IsUserRequest(const net::URLRequest& request) const override;
+
+ DataUseUserData::DataUseContentType GetContentType(
+ const net::URLRequest& request,
+ const net::HttpResponseHeaders& response_headers) const override;
};
} // namespace data_use_measurement

Powered by Google App Engine
This is Rietveld 408576698