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

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: Addressed tbansal comments 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 | « no previous file | net/base/layered_network_delegate.cc » ('j') | net/base/network_delegate.cc » ('J')
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..84bb660405c4d5b00797919276ebee4198d69ee7 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"
@@ -63,6 +65,8 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
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;
@@ -124,6 +128,9 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
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);
virtual void OnURLRequestDestroyedInternal(URLRequest* request);
« no previous file with comments | « no previous file | net/base/layered_network_delegate.cc » ('j') | net/base/network_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698