summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/block_files.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 20:22:37 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 20:22:37 +0000
commitebcb20c7ead50898319724aa42efb0e31acf1877 (patch)
treefc1b9f066fc9ac3aa2faa32ae56e765f9133423a /net/disk_cache/block_files.h
parent55a75d99c6609ed4f6dc7052fcf3d907efaf7137 (diff)
downloadchromium_src-ebcb20c7ead50898319724aa42efb0e31acf1877.zip
chromium_src-ebcb20c7ead50898319724aa42efb0e31acf1877.tar.gz
chromium_src-ebcb20c7ead50898319724aa42efb0e31acf1877.tar.bz2
Convert BlockFiles to use FilePath instead of wstring.
BUG=24444 Review URL: http://codereview.chromium.org/274012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/block_files.h')
-rw-r--r--net/disk_cache/block_files.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/disk_cache/block_files.h b/net/disk_cache/block_files.h
index faf38ef..8503062 100644
--- a/net/disk_cache/block_files.h
+++ b/net/disk_cache/block_files.h
@@ -9,6 +9,7 @@
#include <vector>
+#include "base/file_path.h"
#include "net/disk_cache/addr.h"
#include "net/disk_cache/mapped_file.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
@@ -20,7 +21,7 @@ class EntryImpl;
// This class handles the set of block-files open by the disk cache.
class BlockFiles {
public:
- explicit BlockFiles(const std::wstring& path)
+ explicit BlockFiles(const FilePath& path)
: init_(false), zero_buffer_(NULL), path_(path) {}
~BlockFiles();
@@ -69,11 +70,11 @@ class BlockFiles {
bool FixBlockFileHeader(MappedFile* file);
// Returns the filename for a given file index.
- std::wstring Name(int index);
+ FilePath Name(int index);
bool init_;
char* zero_buffer_; // Buffer to speed-up cleaning deleted entries.
- std::wstring path_; // Path to the backing folder.
+ FilePath path_; // Path to the backing folder.
std::vector<MappedFile*> block_files_; // The actual files.
FRIEND_TEST(DiskCacheTest, BlockFiles_ZeroSizeFile);