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

Unified Diff: net/http/http_cache_transaction.h

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.h
===================================================================
--- net/http/http_cache_transaction.h (revision 148459)
+++ net/http/http_cache_transaction.h (working copy)
@@ -22,6 +22,7 @@
class PartialData;
struct HttpRequestInfo;
+class HttpTransactionDelegate;
// This is the transaction that is returned by the HttpCache transaction
// factory.
@@ -56,7 +57,7 @@
UPDATE = READ_META | WRITE, // READ_WRITE & ~READ_DATA
};
- explicit Transaction(HttpCache* cache);
+ Transaction(HttpCache* cache, HttpTransactionDelegate* transaction_delegate);
virtual ~Transaction();
Mode mode() const { return mode_; }
@@ -334,6 +335,9 @@
// Called to signal completion of asynchronous IO.
void OnIOComplete(int result);
+ void ReportCacheActionStart();
+ void ReportCacheActionFinish();
+
State next_state_;
const HttpRequestInfo* request_;
BoundNetLog net_log_;
@@ -371,6 +375,7 @@
uint64 final_upload_progress_;
base::WeakPtrFactory<Transaction> weak_factory_;
CompletionCallback io_callback_;
+ HttpTransactionDelegate* transaction_delegate_;
};
} // namespace net
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698