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

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

Issue 12880: Disk cache: Add support for an extra data stream for each cache entry.... (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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool CreateExternalFile(Addr* address); 61 bool CreateExternalFile(Addr* address);
62 62
63 // Creates a new storage block of size block_count. 63 // Creates a new storage block of size block_count.
64 bool CreateBlock(FileType block_type, int block_count, 64 bool CreateBlock(FileType block_type, int block_count,
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.
72 LruData* GetLruData();
73
71 // Updates the ranking information for an entry. 74 // Updates the ranking information for an entry.
72 void UpdateRank(CacheRankingsBlock* node, bool modified); 75 void UpdateRank(CacheRankingsBlock* node, bool modified);
73 76
74 // 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
75 // method checks it and takes the appropriate action. 78 // method checks it and takes the appropriate action.
76 void RecoveredEntry(CacheRankingsBlock* rankings); 79 void RecoveredEntry(CacheRankingsBlock* rankings);
77 80
78 // Permanently deletes an entry. 81 // Permanently deletes an entry.
79 void InternalDoomEntry(EntryImpl* entry); 82 void InternalDoomEntry(EntryImpl* entry);
80 83
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 TraceObject trace_object_; // Inits and destroys internal tracing. 195 TraceObject trace_object_; // Inits and destroys internal tracing.
193 ScopedRunnableMethodFactory<BackendImpl> factory_; 196 ScopedRunnableMethodFactory<BackendImpl> factory_;
194 197
195 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); 198 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl);
196 }; 199 };
197 200
198 } // namespace disk_cache 201 } // namespace disk_cache
199 202
200 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__ 203 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__
201 204
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698