OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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://dev.chromium.org/developers/design-documents/network-stack/disk-cache | 6 // http://dev.chromium.org/developers/design-documents/network-stack/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/time.h" | 15 #include "base/time/time.h" |
16 #include "net/base/cache_type.h" | 16 #include "net/base/cache_type.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class FilePath; | 21 class FilePath; |
22 class MessageLoopProxy; | 22 class MessageLoopProxy; |
23 } | 23 } |
24 | 24 |
25 namespace net { | 25 namespace net { |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // Note: This method is deprecated. | 303 // Note: This method is deprecated. |
304 virtual int ReadyForSparseIO(const CompletionCallback& callback) = 0; | 304 virtual int ReadyForSparseIO(const CompletionCallback& callback) = 0; |
305 | 305 |
306 protected: | 306 protected: |
307 virtual ~Entry() {} | 307 virtual ~Entry() {} |
308 }; | 308 }; |
309 | 309 |
310 } // namespace disk_cache | 310 } // namespace disk_cache |
311 | 311 |
312 #endif // NET_DISK_CACHE_DISK_CACHE_H_ | 312 #endif // NET_DISK_CACHE_DISK_CACHE_H_ |
OLD | NEW |