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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_
6 #define NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 // Delegate class receiving notifications when cache actions start and finish, 10 // Delegate class receiving notifications when cache or network actions start
11 // i.e. when the object starts and finishes waiting on an underlying cache. 11 // and finish, i.e. when the object starts and finishes waiting on an
12 // The owner of a HttpTransaction can use this to register a delegate to 12 // underlying cache or the network. The owner of a HttpTransaction can use
13 // receive notifications when these events happen. 13 // this to register a delegate to receive notifications when these events
14 // happen.
14 class HttpTransactionDelegate { 15 class HttpTransactionDelegate {
15 public: 16 public:
16 virtual ~HttpTransactionDelegate() {} 17 virtual ~HttpTransactionDelegate() {}
17 virtual void OnCacheActionStart() = 0; 18 virtual void OnCacheActionStart() = 0;
18 virtual void OnCacheActionFinish() = 0; 19 virtual void OnCacheActionFinish() = 0;
20 virtual void OnNetworkActionStart() = 0;
21 virtual void OnNetworkActionFinish() = 0;
19 }; 22 };
20 23
21 } // namespace net 24 } // namespace net
22 25
23 #endif // NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_ 26 #endif // NET_HTTP_HTTP_TRANSACTION_DELEGATE_H_
OLDNEW
« 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