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

Unified Diff: src/DefaultFileSystem.h

Issue 29512648: Issue 5475 - Update adblockpluscore dependency to revision hg:b935a0402215 (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Aug. 11, 2017, 12:36 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
Index: src/DefaultFileSystem.h
diff --git a/src/DefaultFileSystem.h b/src/DefaultFileSystem.h
index a17de3fe5e05e8ba5e6df41bdcb54913d146b4b8..0f5a39ae151e24aaae48b2e94059b45ff169b5c3 100644
--- a/src/DefaultFileSystem.h
+++ b/src/DefaultFileSystem.h
@@ -43,7 +43,7 @@ namespace AdblockPlus
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& path) const;
+ std::string Resolve(const std::string& fileName) const;
/**
* Sets the base path, all paths are considered relative to it.
@@ -59,20 +59,21 @@ namespace AdblockPlus
{
public:
explicit DefaultFileSystem(const Scheduler& scheduler, std::unique_ptr<DefaultFileSystemSync> syncImpl);
- void Read(const std::string& path,
- const ReadCallback& callback) const;
- void Write(const std::string& path,
+ void Read(const std::string& fileName,
+ const ReadCallback& callback) const override;
+ void Write(const std::string& fileName,
const IOBuffer& data,
- const Callback& callback);
- void Move(const std::string& fromPath,
- const std::string& toPath,
- const Callback& callback);
- void Remove(const std::string& path, const Callback& callback);
- void Stat(const std::string& path,
- const StatCallback& callback) const;
+ const Callback& callback) override;
+ void Move(const std::string& fromFileName,
+ const std::string& toFileName,
+ const Callback& callback) override;
+ void Remove(const std::string& fileName, const Callback& callback) override;
+ void Stat(const std::string& fileName,
+ const StatCallback& callback) const override;
- std::string Resolve(const std::string& path) const;
private:
+ // Returns the absolute path to a file.
+ std::string Resolve(const std::string& fileName) const;
Scheduler scheduler;
std::unique_ptr<DefaultFileSystemSync> syncImpl;
};
« libadblockplus.gyp ('K') | « libadblockplus.gyp ('k') | src/DefaultFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld