| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "net/http/http_cache.h" | 5 #include "net/http/http_cache.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 HttpResponseInfo response_; | 313 HttpResponseInfo response_; |
| 314 HttpResponseInfo auth_response_; | 314 HttpResponseInfo auth_response_; |
| 315 std::string cache_key_; | 315 std::string cache_key_; |
| 316 Mode mode_; | 316 Mode mode_; |
| 317 scoped_refptr<IOBuffer> read_buf_; | 317 scoped_refptr<IOBuffer> read_buf_; |
| 318 int read_offset_; | 318 int read_offset_; |
| 319 int effective_load_flags_; | 319 int effective_load_flags_; |
| 320 uint64 final_upload_progress_; | 320 uint64 final_upload_progress_; |
| 321 CompletionCallbackImpl<Transaction> network_info_callback_; | 321 CompletionCallbackImpl<Transaction> network_info_callback_; |
| 322 CompletionCallbackImpl<Transaction> network_read_callback_; | 322 CompletionCallbackImpl<Transaction> network_read_callback_; |
| 323 scoped_refptr<CancelableCompletionCallback<Transaction> > cache_read_callback_
; | 323 scoped_refptr<CancelableCompletionCallback<Transaction> > |
| 324 cache_read_callback_; |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 HttpCache::Transaction::~Transaction() { | 327 HttpCache::Transaction::~Transaction() { |
| 327 if (!revoked()) { | 328 if (!revoked()) { |
| 328 if (entry_) { | 329 if (entry_) { |
| 329 cache_->DoneWithEntry(entry_, this); | 330 cache_->DoneWithEntry(entry_, this); |
| 330 } else { | 331 } else { |
| 331 cache_->RemovePendingTransaction(this); | 332 cache_->RemovePendingTransaction(this); |
| 332 } | 333 } |
| 333 } | 334 } |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 | 1453 |
| 1453 entry->pending_queue.erase(entry->pending_queue.begin()); | 1454 entry->pending_queue.erase(entry->pending_queue.begin()); |
| 1454 | 1455 |
| 1455 AddTransactionToEntry(entry, next); | 1456 AddTransactionToEntry(entry, next); |
| 1456 } | 1457 } |
| 1457 | 1458 |
| 1458 //----------------------------------------------------------------------------- | 1459 //----------------------------------------------------------------------------- |
| 1459 | 1460 |
| 1460 } // namespace net | 1461 } // namespace net |
| 1461 | 1462 |
| OLD | NEW |