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

Unified Diff: net/base/layered_network_delegate.h

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed empty cronet OnRawBytesRead implementation Created 5 years, 4 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 | « ios/web/shell/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index 410dce11cd13b356750bdd4bef0fb5d1b844045a..8530db3e7550ee436292df35eff56cf0b62fc65a 100644
--- a/net/base/layered_network_delegate.h
+++ b/net/base/layered_network_delegate.h
@@ -5,6 +5,8 @@
#ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_
#define NET_BASE_LAYERED_NETWORK_DELEGATE_H_
+#include <stdint.h>
+
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "net/base/completion_callback.h"
@@ -62,7 +64,8 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
GURL* allowed_unsafe_redirect_url) final;
void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final;
void OnResponseStarted(URLRequest* request) final;
- void OnRawBytesRead(const URLRequest& request, int bytes_read) final;
+ void OnNetworkBytesReceived(const URLRequest& request,
+ int64_t bytes_received) final;
void OnCompleted(URLRequest* request, bool started) final;
void OnURLRequestDestroyed(URLRequest* request) final;
void OnPACScriptError(int line_number, const base::string16& error) final;
@@ -121,8 +124,8 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
virtual void OnResponseStartedInternal(URLRequest* request);
- virtual void OnRawBytesReadInternal(const URLRequest& request,
- int bytes_read);
+ virtual void OnNetworkBytesReceivedInternal(const URLRequest& request,
+ int64_t bytes_received);
virtual void OnCompletedInternal(URLRequest* request, bool started);
« no previous file with comments | « ios/web/shell/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698