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

Side by Side Diff: net/http/http_cache.cc

Issue 1594036: Update about:cache to display cached metadata for an entry.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_cache.h ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/http/http_cache.h ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698