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

Side by Side Diff: net/disk_cache/backend_impl.h

Issue 14141: Disk cache: remove the hard coded list from rankings.cc... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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/disk_cache/addr.h ('k') | net/disk_cache/backend_impl.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) 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 // See net/disk_cache/disk_cache.h for the public interface of the cache. 5 // See net/disk_cache/disk_cache.h for the public interface of the cache.
6 6
7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H__ 7 #ifndef NET_DISK_CACHE_BACKEND_IMPL_H__
8 #define NET_DISK_CACHE_BACKEND_IMPL_H__ 8 #define NET_DISK_CACHE_BACKEND_IMPL_H__
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 Addr* block_address); 65 Addr* block_address);
66 66
67 // Deletes a given storage block. deep set to true can be used to zero-fill 67 // Deletes a given storage block. deep set to true can be used to zero-fill
68 // the related storage in addition of releasing the related block. 68 // the related storage in addition of releasing the related block.
69 void DeleteBlock(Addr block_address, bool deep); 69 void DeleteBlock(Addr block_address, bool deep);
70 70
71 // Retrieves a pointer to the lru-related data. 71 // Retrieves a pointer to the lru-related data.
72 LruData* GetLruData(); 72 LruData* GetLruData();
73 73
74 // Updates the ranking information for an entry. 74 // Updates the ranking information for an entry.
75 void UpdateRank(CacheRankingsBlock* node, bool modified); 75 void UpdateRank(EntryImpl* entry, bool modified);
76 76
77 // A node was recovered from a crash, it may not be on the index, so this 77 // A node was recovered from a crash, it may not be on the index, so this
78 // method checks it and takes the appropriate action. 78 // method checks it and takes the appropriate action.
79 void RecoveredEntry(CacheRankingsBlock* rankings); 79 void RecoveredEntry(CacheRankingsBlock* rankings);
80 80
81 // Permanently deletes an entry. 81 // Permanently deletes an entry.
82 void InternalDoomEntry(EntryImpl* entry); 82 void InternalDoomEntry(EntryImpl* entry);
83 83
84 // This method must be called whenever an entry is released for the last time. 84 // This method must be called whenever an entry is released for the last time.
85 void CacheEntryDestroyed(); 85 void CacheEntryDestroyed();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 TraceObject trace_object_; // Inits and destroys internal tracing. 200 TraceObject trace_object_; // Inits and destroys internal tracing.
201 ScopedRunnableMethodFactory<BackendImpl> factory_; 201 ScopedRunnableMethodFactory<BackendImpl> factory_;
202 202
203 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); 203 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl);
204 }; 204 };
205 205
206 } // namespace disk_cache 206 } // namespace disk_cache
207 207
208 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__ 208 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__
209 209
OLDNEW
« no previous file with comments | « net/disk_cache/addr.h ('k') | net/disk_cache/backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698