OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "net/http/http_cache_transaction.h" | 25 #include "net/http/http_cache_transaction.h" |
26 #include "net/http/http_network_layer.h" | 26 #include "net/http/http_network_layer.h" |
27 #include "net/http/http_network_session.h" | 27 #include "net/http/http_network_session.h" |
28 #include "net/http/http_request_info.h" | 28 #include "net/http/http_request_info.h" |
29 #include "net/http/http_response_headers.h" | 29 #include "net/http/http_response_headers.h" |
30 #include "net/http/http_response_info.h" | 30 #include "net/http/http_response_info.h" |
31 #include "net/spdy/spdy_session_pool.h" | 31 #include "net/spdy/spdy_session_pool.h" |
32 | 32 |
33 namespace net { | 33 namespace net { |
34 | 34 |
35 // disk cache entry data indices. | |
36 enum { | |
37 kResponseInfoIndex, | |
38 kResponseContentIndex | |
39 }; | |
40 | |
41 //----------------------------------------------------------------------------- | 35 //----------------------------------------------------------------------------- |
42 | 36 |
43 HttpCache::ActiveEntry::ActiveEntry(disk_cache::Entry* e) | 37 HttpCache::ActiveEntry::ActiveEntry(disk_cache::Entry* e) |
44 : disk_entry(e), | 38 : disk_entry(e), |
45 writer(NULL), | 39 writer(NULL), |
46 will_process_pending_queue(false), | 40 will_process_pending_queue(false), |
47 doomed(false) { | 41 doomed(false) { |
48 } | 42 } |
49 | 43 |
50 HttpCache::ActiveEntry::~ActiveEntry() { | 44 HttpCache::ActiveEntry::~ActiveEntry() { |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 item->NotifyTransaction(ERR_CACHE_RACE, NULL); | 898 item->NotifyTransaction(ERR_CACHE_RACE, NULL); |
905 fail_requests = true; | 899 fail_requests = true; |
906 } else { | 900 } else { |
907 item->NotifyTransaction(result, entry); | 901 item->NotifyTransaction(result, entry); |
908 } | 902 } |
909 } | 903 } |
910 } | 904 } |
911 } | 905 } |
912 | 906 |
913 } // namespace net | 907 } // namespace net |
OLD | NEW |