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

Unified Diff: src/DefaultFileSystem.h

Issue 29533641: Issue 5569 - add the possibility to use synchronous WebRequest and base path in File System (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Sept. 1, 2017, 3:32 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 | « include/AdblockPlus/Platform.h ('k') | src/DefaultFileSystem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/DefaultFileSystem.h
diff --git a/src/DefaultFileSystem.h b/src/DefaultFileSystem.h
index 11bc3e459b18663ea804496126da97e2f0165736..204be06a5651491211cdfe218bbc5b828c505061 100644
--- a/src/DefaultFileSystem.h
+++ b/src/DefaultFileSystem.h
@@ -38,19 +38,13 @@ namespace AdblockPlus
class DefaultFileSystemSync
{
public:
+ explicit DefaultFileSystemSync(const std::string& basePath);
IFileSystem::IOBuffer Read(const std::string& path) const;
void Write(const std::string& path, const IFileSystem::IOBuffer& data);
void Move(const std::string& fromPath, const std::string& toPath);
void Remove(const std::string& path);
IFileSystem::StatResult Stat(const std::string& path) const;
std::string Resolve(const std::string& fileName) const;
-
- /**
- * Sets the base path, all paths are considered relative to it.
- * @param path Base path.
- */
- void SetBasePath(const std::string& path);
-
protected:
std::string basePath;
};
« no previous file with comments | « include/AdblockPlus/Platform.h ('k') | src/DefaultFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld