| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ |
| 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 8 #include <string> | 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 14 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 15 #include "base/logging.h" | 16 #include "base/logging.h" |
| 16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/pickle.h" | 18 #include "base/pickle.h" |
| 18 #include "base/port.h" | |
| 19 #include "net/base/cache_type.h" | 19 #include "net/base/cache_type.h" |
| 20 #include "net/base/net_export.h" | 20 #include "net/base/net_export.h" |
| 21 #include "net/disk_cache/simple/simple_index.h" | 21 #include "net/disk_cache/simple/simple_index.h" |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class SingleThreadTaskRunner; | 24 class SingleThreadTaskRunner; |
| 25 class TaskRunner; | 25 class TaskRunner; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace disk_cache { | 28 namespace disk_cache { |
| 29 | 29 |
| 30 const uint64 kSimpleIndexMagicNumber = GG_UINT64_C(0x656e74657220796f); | 30 const uint64 kSimpleIndexMagicNumber = UINT64_C(0x656e74657220796f); |
| 31 | 31 |
| 32 struct NET_EXPORT_PRIVATE SimpleIndexLoadResult { | 32 struct NET_EXPORT_PRIVATE SimpleIndexLoadResult { |
| 33 SimpleIndexLoadResult(); | 33 SimpleIndexLoadResult(); |
| 34 ~SimpleIndexLoadResult(); | 34 ~SimpleIndexLoadResult(); |
| 35 void Reset(); | 35 void Reset(); |
| 36 | 36 |
| 37 bool did_load; | 37 bool did_load; |
| 38 SimpleIndex::EntrySet entries; | 38 SimpleIndex::EntrySet entries; |
| 39 bool flush_required; | 39 bool flush_required; |
| 40 }; | 40 }; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 static const char kIndexFileName[]; | 183 static const char kIndexFileName[]; |
| 184 static const char kTempIndexFileName[]; | 184 static const char kTempIndexFileName[]; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(SimpleIndexFile); | 186 DISALLOW_COPY_AND_ASSIGN(SimpleIndexFile); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 | 189 |
| 190 } // namespace disk_cache | 190 } // namespace disk_cache |
| 191 | 191 |
| 192 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ | 192 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ |
| OLD | NEW |