| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Performs general initialization for this current instance of the cache. | 35 // Performs general initialization for this current instance of the cache. |
| 36 bool Init(); | 36 bool Init(); |
| 37 | 37 |
| 38 // Backend interface. | 38 // Backend interface. |
| 39 virtual int32 GetEntryCount() const; | 39 virtual int32 GetEntryCount() const; |
| 40 virtual bool OpenEntry(const std::string& key, Entry** entry); | 40 virtual bool OpenEntry(const std::string& key, Entry** entry); |
| 41 virtual bool CreateEntry(const std::string& key, Entry** entry); | 41 virtual bool CreateEntry(const std::string& key, Entry** entry); |
| 42 virtual bool DoomEntry(const std::string& key); | 42 virtual bool DoomEntry(const std::string& key); |
| 43 virtual bool DoomAllEntries(); | 43 virtual bool DoomAllEntries(); |
| 44 virtual bool DoomEntriesBetween(const Time initial_time, | 44 virtual bool DoomEntriesBetween(const base::Time initial_time, |
| 45 const Time end_time); | 45 const base::Time end_time); |
| 46 virtual bool DoomEntriesSince(const Time initial_time); | 46 virtual bool DoomEntriesSince(const base::Time initial_time); |
| 47 virtual bool OpenNextEntry(void** iter, Entry** next_entry); | 47 virtual bool OpenNextEntry(void** iter, Entry** next_entry); |
| 48 virtual void EndEnumeration(void** iter); | 48 virtual void EndEnumeration(void** iter); |
| 49 virtual void GetStats(StatsItems* stats); | 49 virtual void GetStats(StatsItems* stats); |
| 50 | 50 |
| 51 // Sets the maximum size for the total amount of data stored by this instance. | 51 // Sets the maximum size for the total amount of data stored by this instance. |
| 52 bool SetMaxSize(int max_bytes); | 52 bool SetMaxSize(int max_bytes); |
| 53 | 53 |
| 54 // Returns the full name for an external storage file. | 54 // Returns the full name for an external storage file. |
| 55 std::wstring GetFileName(Addr address) const; | 55 std::wstring GetFileName(Addr address) const; |
| 56 | 56 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 TraceObject trace_object_; // Inits and destroys internal tracing. | 182 TraceObject trace_object_; // Inits and destroys internal tracing. |
| 183 ScopedRunnableMethodFactory<BackendImpl> factory_; | 183 ScopedRunnableMethodFactory<BackendImpl> factory_; |
| 184 | 184 |
| 185 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); | 185 DISALLOW_EVIL_CONSTRUCTORS(BackendImpl); |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace disk_cache | 188 } // namespace disk_cache |
| 189 | 189 |
| 190 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__ | 190 #endif // NET_DISK_CACHE_BACKEND_IMPL_H__ |
| 191 | 191 |
| OLD | NEW |