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

Unified Diff: net/http/http_transaction_delegate.h

Issue 10834313: Add histograms for network activity, and total/cumulative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « net/http/http_cache_unittest.cc ('k') | net/proxy/network_delegate_error_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_transaction_delegate.h
===================================================================
--- net/http/http_transaction_delegate.h (revision 152373)
+++ net/http/http_transaction_delegate.h (working copy)
@@ -7,15 +7,18 @@
namespace net {
-// Delegate class receiving notifications when cache actions start and finish,
-// i.e. when the object starts and finishes waiting on an underlying cache.
-// The owner of a HttpTransaction can use this to register a delegate to
-// receive notifications when these events happen.
+// Delegate class receiving notifications when cache or network actions start
+// and finish, i.e. when the object starts and finishes waiting on an
+// underlying cache or the network. The owner of a HttpTransaction can use
+// this to register a delegate to receive notifications when these events
+// happen.
class HttpTransactionDelegate {
public:
virtual ~HttpTransactionDelegate() {}
virtual void OnCacheActionStart() = 0;
virtual void OnCacheActionFinish() = 0;
+ virtual void OnNetworkActionStart() = 0;
+ virtual void OnNetworkActionFinish() = 0;
};
} // namespace net
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/proxy/network_delegate_error_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698