Home | History | Annotate | Download | only in disk_cache

Lines Matching defs:Entry

27 class Entry;
76 // for a given Entry (as opposed to the Backend) will still generate a
83 // Opens an existing entry. Upon success, the out param holds a pointer
84 // to a Entry object representing the specified disk cache entry.
85 // When the entry pointer is no longer needed, the Close method
88 virtual bool OpenEntry(const std::string& key, Entry** entry) = 0;
90 // Opens an existing entry. Upon success, |entry| holds a pointer to an Entry
91 // object representing the specified disk cache entry. When the entry pointer
94 // will be invoked when the entry is available. The pointer to receive the
95 // |entry| must remain valid until the operation completes.
96 virtual int OpenEntry(const std::string& key, Entry** entry,
99 // Creates a new entry. Upon success, the out param holds a pointer
100 // to a Entry object representing the newly created disk cache
101 // entry. When the entry pointer is no longer needed, the Close
104 virtual bool CreateEntry(const std::string& key, Entry** entry) = 0;
106 // Creates a new entry. Upon success, the out param holds a pointer to an
107 // Entry object representing the newly created disk cache entry. When the
108 // entry pointer is no longer needed, its Close method should be called. The
110 // the |callback| will be invoked when the entry is available. The pointer to
111 // receive the |entry| must remain valid until the operation completes.
112 virtual int CreateEntry(const std::string& key, Entry** entry,
115 // Marks the entry, specified by the given key, for deletion.
119 // Marks the entry, specified by the given key, for deletion. The return value
121 // will be invoked after the entry is doomed.
162 // entries to enumerate. When the entry pointer is no longer needed, the
165 // NOTE: This method does not modify the last_used field of the entry,
166 // and therefore it does not impact the eviction ranking of the entry.
168 virtual bool OpenNextEntry(void** iter, Entry** next_entry) = 0;
174 // entries to enumerate. When the entry pointer is no longer needed, its
180 // NOTE: This method does not modify the last_used field of the entry, and
181 // therefore it does not impact the eviction ranking of the entry.
182 virtual int OpenNextEntry(void** iter, Entry** next_entry,
185 // Releases iter without returning the next entry. Whenever OpenNextEntry()
196 // This interface represents an entry in the disk cache.
197 class Entry {
199 // Marks this cache entry for deletion.
202 // Releases this entry. Calling this method does not cancel pending IO
203 // operations on this entry. Even after the last reference to this object has
207 // Returns the key associated with this cache entry.
210 // Returns the time when this cache entry was last used.
213 // Returns the time when this cache entry was last modified.
227 // been called; in other words, the caller may close this entry without
241 // been called; in other words, the caller may close this entry without
253 // track of which parts of the entry have been written before. The backend
263 // behavior. Using a sparse-aware method with an entry that was not stored
281 // same physical entry, so in practice a single object should be instantiated
284 // requirement includes the case when an entry is closed while some operation
288 // completes before closing the entry, or call CancelSparseIO() before closing
289 // the entry, and call ReadyForSparseIO() on the new entry and wait for the
298 // entries. |truncate| is not part of this interface because a sparse entry
301 // that the content has changed), the whole entry should be doomed and
306 // Returns information about the currently stored portion of a sparse entry.
311 // this entry has stored more than the returned value. This method returns a
316 // Returns information about the currently stored portion of a sparse entry.
321 // this entry has stored more than the returned value. This method returns a
333 // Returns OK if this entry can be used immediately. If that is not the
335 // entry is ready to use. This method always returns OK for non-sparse
344 // object that refers to the same physical disk entry.
349 virtual ~Entry() {}