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

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

Issue 7043007: Kill URLRequestJobTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 7 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/base/network_delegate.cc ('k') | net/http/http_cache.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file declares a HttpTransactionFactory implementation that can be 5 // This file declares a HttpTransactionFactory implementation that can be
6 // layered on top of another HttpTransactionFactory to add HTTP caching. The 6 // layered on top of another HttpTransactionFactory to add HTTP caching. The
7 // caching logic follows RFC 2616 (any exceptions are called out in the code). 7 // caching logic follows RFC 2616 (any exceptions are called out in the code).
8 // 8 //
9 // The HttpCache takes a disk_cache::Backend as a parameter, and uses that for 9 // The HttpCache takes a disk_cache::Backend as a parameter, and uses that for
10 // the cache storage. 10 // the cache storage.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // Close currently active sockets so that fresh page loads will not use any 177 // Close currently active sockets so that fresh page loads will not use any
178 // recycled connections. For sockets currently in use, they may not close 178 // recycled connections. For sockets currently in use, they may not close
179 // immediately, but they will not be reusable. This is for debugging. 179 // immediately, but they will not be reusable. This is for debugging.
180 void CloseAllConnections(); 180 void CloseAllConnections();
181 181
182 // HttpTransactionFactory implementation: 182 // HttpTransactionFactory implementation:
183 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans); 183 virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans);
184 virtual HttpCache* GetCache(); 184 virtual HttpCache* GetCache();
185 virtual HttpNetworkSession* GetSession(); 185 virtual HttpNetworkSession* GetSession();
186 virtual void Suspend(bool suspend);
187 186
188 protected: 187 protected:
189 // Disk cache entry data indices. 188 // Disk cache entry data indices.
190 enum { 189 enum {
191 kResponseInfoIndex = 0, 190 kResponseInfoIndex = 0,
192 kResponseContentIndex, 191 kResponseContentIndex,
193 kMetadataIndex, 192 kMetadataIndex,
194 193
195 // Must remain at the end of the enum. 194 // Must remain at the end of the enum.
196 kNumCacheEntryDataIndices 195 kNumCacheEntryDataIndices
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 ScopedRunnableMethodFactory<HttpCache> task_factory_; 373 ScopedRunnableMethodFactory<HttpCache> task_factory_;
375 374
376 scoped_ptr<PlaybackCacheMap> playback_cache_map_; 375 scoped_ptr<PlaybackCacheMap> playback_cache_map_;
377 376
378 DISALLOW_COPY_AND_ASSIGN(HttpCache); 377 DISALLOW_COPY_AND_ASSIGN(HttpCache);
379 }; 378 };
380 379
381 } // namespace net 380 } // namespace net
382 381
383 #endif // NET_HTTP_HTTP_CACHE_H_ 382 #endif // NET_HTTP_HTTP_CACHE_H_
OLDNEW
« no previous file with comments | « net/base/network_delegate.cc ('k') | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698