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

Unified Diff: include/AdblockPlus/FileSystem.h

Issue 10805001: Fixed: FileSystem;:Write should take an istream instance for input, not ostream (Closed)
Patch Set: Created May 24, 2013, 9:35 a.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/DefaultFileSystem.h ('k') | src/DefaultFileSystem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/FileSystem.h
===================================================================
--- a/include/AdblockPlus/FileSystem.h
+++ b/include/AdblockPlus/FileSystem.h
@@ -44,17 +44,17 @@ namespace AdblockPlus
bool isFile;
int64_t lastModified;
};
virtual ~FileSystem() {}
virtual std::tr1::shared_ptr<std::istream>
Read(const std::string& path) const = 0;
virtual void Write(const std::string& path,
- std::tr1::shared_ptr<std::ostream> data) = 0;
+ std::tr1::shared_ptr<std::istream> data) = 0;
virtual void Move(const std::string& fromPath,
const std::string& toPath) = 0;
virtual void Remove(const std::string& path) = 0;
virtual StatResult Stat(const std::string& path) const = 0;
virtual std::string Resolve(const std::string& path) const = 0;
};
typedef std::tr1::shared_ptr<FileSystem> FileSystemPtr;
« no previous file with comments | « include/AdblockPlus/DefaultFileSystem.h ('k') | src/DefaultFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld