Index: net/http/http_cache_transaction.h |
=================================================================== |
--- net/http/http_cache_transaction.h (revision 145862) |
+++ net/http/http_cache_transaction.h (working copy) |
@@ -23,6 +23,7 @@ |
class PartialData; |
struct HttpRequestInfo; |
+class HttpTransactionDelegate; |
// This is the transaction that is returned by the HttpCache transaction |
// factory. |
@@ -57,7 +58,7 @@ |
UPDATE = READ_META | WRITE, // READ_WRITE & ~READ_DATA |
}; |
- explicit Transaction(HttpCache* cache); |
+ explicit Transaction(HttpCache* cache, HttpTransactionDelegate* delegate); |
virtual ~Transaction(); |
Mode mode() const { return mode_; } |
@@ -335,6 +336,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_; |
@@ -372,6 +376,7 @@ |
uint64 final_upload_progress_; |
base::WeakPtrFactory<Transaction> weak_factory_; |
CompletionCallback io_callback_; |
+ HttpTransactionDelegate* delegate_; |
}; |
} // namespace net |