Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include/AdblockPlus/DefaultFileSystem.h

Issue 10369004: File system path resolving (Closed)
Patch Set: Addressing comments Created May 5, 2013, 10:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/AdblockPlus/FileSystem.h » ('j') | src/DefaultFileSystem.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/DefaultFileSystem.h
===================================================================
--- a/include/AdblockPlus/DefaultFileSystem.h
+++ b/include/AdblockPlus/DefaultFileSystem.h
@@ -3,6 +3,12 @@
#include "FileSystem.h"
+#ifdef _WIN32
+#define PATH_SEPARATOR '\\'
+#else
+#define PATH_SEPARATOR '/'
+#endif
+
namespace AdblockPlus
{
class DefaultFileSystem : public FileSystem
@@ -17,6 +23,9 @@
StatResult Stat(const std::string& path) const;
std::string Resolve(const std::string& path) const;
void SetBasePath(const std::string& path);
+ protected:
+ std::string basePath;
+
};
}
« no previous file with comments | « no previous file | include/AdblockPlus/FileSystem.h » ('j') | src/DefaultFileSystem.cpp » ('J')

Powered by Google App Engine
This is Rietveld