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 #ifndef NET_TOOLS_DUMP_CACHE_CACHE_DUMPER_H_ | 5 #ifndef NET_TOOLS_DUMP_CACHE_CACHE_DUMPER_H_ |
6 #define NET_TOOLS_DUMP_CACHE_CACHE_DUMPER_H_ | 6 #define NET_TOOLS_DUMP_CACHE_CACHE_DUMPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "net/disk_cache/backend_impl.h" | 11 #include "net/disk_cache/blockfile/backend_impl.h" |
12 | 12 |
13 #ifdef WIN32 | 13 #ifdef WIN32 |
14 // Dumping the cache often creates very large filenames, which are tricky | 14 // Dumping the cache often creates very large filenames, which are tricky |
15 // on windows. Most API calls don't support large filenames, including | 15 // on windows. Most API calls don't support large filenames, including |
16 // most of the base library functions. Unfortunately, adding "\\?\" into | 16 // most of the base library functions. Unfortunately, adding "\\?\" into |
17 // the filename support is tricky. Instead, if WIN32_LARGE_FILENAME_SUPPORT | 17 // the filename support is tricky. Instead, if WIN32_LARGE_FILENAME_SUPPORT |
18 // is set, we use direct WIN32 APIs for manipulating the files. | 18 // is set, we use direct WIN32 APIs for manipulating the files. |
19 #define WIN32_LARGE_FILENAME_SUPPORT | 19 #define WIN32_LARGE_FILENAME_SUPPORT |
20 #endif | 20 #endif |
21 | 21 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 base::FilePath entry_path_; | 80 base::FilePath entry_path_; |
81 std::string entry_url_; | 81 std::string entry_url_; |
82 #ifdef WIN32_LARGE_FILENAME_SUPPORT | 82 #ifdef WIN32_LARGE_FILENAME_SUPPORT |
83 HANDLE entry_; | 83 HANDLE entry_; |
84 #else | 84 #else |
85 FILE* entry_; | 85 FILE* entry_; |
86 #endif | 86 #endif |
87 }; | 87 }; |
88 | 88 |
89 #endif // NET_TOOLS_DUMP_CACHE_CACHE_DUMPER_H_ | 89 #endif // NET_TOOLS_DUMP_CACHE_CACHE_DUMPER_H_ |
OLD | NEW |