Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: net/disk_cache/block_files.h

Issue 274012: Convert BlockFiles to use FilePath instead of wstring. (Closed)
Patch Set: rebase Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/block_files.h
diff --git a/net/disk_cache/block_files.h b/net/disk_cache/block_files.h
index faf38ef41e568e2f4a875c6442171ea20e4d7a11..850306221c019b57712d0dcbc6d45ee45405c794 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);

Powered by Google App Engine
This is Rietveld 408576698