Chromium Code Reviews| 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* 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* delegate_; |
|
mmenke
2012/07/27 19:03:54
Suggest you call this transaction_delegate_, to ma
tburkard
2012/07/27 23:25:44
Done.
|
| }; |
| } // namespace net |