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 // Defines the public interface of the disk cache. For more details see | 5 // Defines the public interface of the disk cache. For more details see |
6 // http://wiki/Main/ChromeDiskCacheBackend | 6 // http://dev.chromium.org/developers/design-documents/disk-cache |
7 | 7 |
8 #ifndef NET_DISK_CACHE_DISK_CACHE_H__ | 8 #ifndef NET_DISK_CACHE_DISK_CACHE_H_ |
9 #define NET_DISK_CACHE_DISK_CACHE_H__ | 9 #define NET_DISK_CACHE_DISK_CACHE_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // not save it for future use. The lifetime of the base::PlatformFile handle | 176 // not save it for future use. The lifetime of the base::PlatformFile handle |
177 // is managed by the implementor of this class. | 177 // is managed by the implementor of this class. |
178 virtual base::PlatformFile GetPlatformFile(int index) = 0; | 178 virtual base::PlatformFile GetPlatformFile(int index) = 0; |
179 | 179 |
180 protected: | 180 protected: |
181 virtual ~Entry() {} | 181 virtual ~Entry() {} |
182 }; | 182 }; |
183 | 183 |
184 } // namespace disk_cache | 184 } // namespace disk_cache |
185 | 185 |
186 #endif // NET_DISK_CACHE_DISK_CACHE_H__ | 186 #endif // NET_DISK_CACHE_DISK_CACHE_H_ |
187 | 187 |
OLD | NEW |