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

Unified Diff: net/base/network_delegate.h

Issue 7043007: Kill URLRequestJobTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build. Created 9 years, 7 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
Index: net/base/network_delegate.h
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 977df2fdc72857251ea88556c7c3a288978b35eb..313a90b9af1b8b65e909a8480f95923302ba9202 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -49,6 +49,7 @@ class NetworkDelegate : public base::NonThreadSafe {
void NotifyBeforeRedirect(URLRequest* request,
const GURL& new_location);
void NotifyResponseStarted(URLRequest* request);
+ void NotifyBytesRead(const URLRequest& request, int bytes_read);
rvargas (doing something else) 2011/05/18 21:45:18 It is interesting that bytes_read is always the ra
willchan no longer on Chromium 2011/05/18 23:55:55 I've renamed to NotifyRawBytesRead().
void NotifyCompleted(URLRequest* request);
void NotifyURLRequestDestroyed(URLRequest* request);
void NotifyHttpTransactionDestroyed(uint64 request_id);
@@ -89,6 +90,9 @@ class NetworkDelegate : public base::NonThreadSafe {
// This corresponds to URLRequestDelegate::OnResponseStarted.
virtual void OnResponseStarted(URLRequest* request) = 0;
+ // Called every time we read raw bytes.
+ virtual void OnBytesRead(const URLRequest& request, int bytes_read) = 0;
+
// Indicates that the URL request has been completed or failed.
virtual void OnCompleted(URLRequest* request) = 0;

Powered by Google App Engine
This is Rietveld 408576698