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

Unified Diff: net/base/layered_network_delegate.cc

Issue 1421983002: Include tab IDs when reporting data use accounting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data_use_scoped_vector
Patch Set: Moved tab ID determination logic into data_usage codebase. Created 5 years, 1 month 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: net/base/layered_network_delegate.cc
diff --git a/net/base/layered_network_delegate.cc b/net/base/layered_network_delegate.cc
index 9652d1c1841955aea94ead01a62e3f77fecff96b..6f8d89a7fdf614fd478409ba5d5dadd9499fbf53 100644
--- a/net/base/layered_network_delegate.cc
+++ b/net/base/layered_network_delegate.cc
@@ -138,25 +138,24 @@ void LayeredNetworkDelegate::OnResponseStarted(URLRequest* request) {
void LayeredNetworkDelegate::OnResponseStartedInternal(URLRequest* request) {
}
-void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request,
+void LayeredNetworkDelegate::OnNetworkBytesReceived(URLRequest* request,
int64_t bytes_received) {
OnNetworkBytesReceivedInternal(request, bytes_received);
nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received);
}
void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal(
- const URLRequest& request,
+ URLRequest* request,
int64_t bytes_received) {}
-void LayeredNetworkDelegate::OnNetworkBytesSent(const URLRequest& request,
+void LayeredNetworkDelegate::OnNetworkBytesSent(URLRequest* request,
int64_t bytes_sent) {
OnNetworkBytesSentInternal(request, bytes_sent);
nested_network_delegate_->NotifyNetworkBytesSent(request, bytes_sent);
}
-void LayeredNetworkDelegate::OnNetworkBytesSentInternal(
- const URLRequest& request,
- int64_t bytes_sent) {}
+void LayeredNetworkDelegate::OnNetworkBytesSentInternal(URLRequest* request,
+ int64_t bytes_sent) {}
void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) {
OnCompletedInternal(request, started);

Powered by Google App Engine
This is Rietveld 408576698