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

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
Index: net/http/http_cache_transaction.h
===================================================================
--- net/http/http_cache_transaction.h (revision 147723)
+++ 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);
+ explicit Transaction(HttpCache* cache, HttpTransactionDelegate* delegate);
rvargas (doing something else) 2012/07/23 22:22:36 Not explicit anymore
tburkard 2012/07/24 01:03:12 Done.
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* delegate_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698