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

Unified Diff: include/AdblockPlus/DefaultFileSystem.h

Issue 10296001: Implement File API (Closed)
Patch Set: Addressed the new issues Created April 16, 2013, 1:37 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.h ('k') | include/AdblockPlus/FileReader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/DefaultFileSystem.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/include/AdblockPlus/DefaultFileSystem.h
@@ -0,0 +1,21 @@
+#ifndef ADBLOCKPLUS_DEFAULT_FILE_SYSTEM_H
+#define ADBLOCKPLUS_DEFAULT_FILE_SYSTEM_H
+
+#include "FileSystem.h"
+
+namespace AdblockPlus
+{
+ class DefaultFileSystem : public FileSystem
+ {
+ public:
+ std::tr1::shared_ptr<std::istream> Read(const std::string& path) const;
+ void Write(const std::string& path,
+ std::tr1::shared_ptr<std::ostream> data);
+ void Move(const std::string& fromPath,
+ const std::string& toPath);
+ void Remove(const std::string& path);
+ StatResult Stat(const std::string& path) const;
+ };
+}
+
+#endif
« no previous file with comments | « include/AdblockPlus.h ('k') | include/AdblockPlus/FileReader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld