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

Side by Side Diff: include/AdblockPlus/DefaultFileSystem.h

Issue 10369004: File system path resolving (Closed)
Patch Set: Comments addressed Created April 30, 2013, 8:09 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/AdblockPlus/FileSystem.h » ('j') | include/AdblockPlus/FileSystem.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef ADBLOCKPLUS_DEFAULT_FILE_SYSTEM_H 1 #ifndef ADBLOCKPLUS_DEFAULT_FILE_SYSTEM_H
2 #define ADBLOCKPLUS_DEFAULT_FILE_SYSTEM_H 2 #define ADBLOCKPLUS_DEFAULT_FILE_SYSTEM_H
3 3
4 #include "FileSystem.h" 4 #include "FileSystem.h"
5 5
6 namespace AdblockPlus 6 namespace AdblockPlus
7 { 7 {
8 class DefaultFileSystem : public FileSystem 8 class DefaultFileSystem : public FileSystem
9 { 9 {
10 public: 10 public:
11 std::tr1::shared_ptr<std::istream> Read(const std::string& path) const; 11 std::tr1::shared_ptr<std::istream> Read(const std::string& path) const;
12 void Write(const std::string& path, 12 void Write(const std::string& path,
13 std::tr1::shared_ptr<std::ostream> data); 13 std::tr1::shared_ptr<std::ostream> data);
14 void Move(const std::string& fromPath, 14 void Move(const std::string& fromPath,
15 const std::string& toPath); 15 const std::string& toPath);
16 void Remove(const std::string& path); 16 void Remove(const std::string& path);
17 StatResult Stat(const std::string& path) const; 17 StatResult Stat(const std::string& path) const;
18 std::string Resolve(const std::string& path) const; 18 std::string Resolve(const std::string& path) const;
19 void SetBasePath(const std::string& path);
19 20
20 }; 21 };
21 } 22 }
22 23
23 #endif 24 #endif
OLDNEW
« no previous file with comments | « no previous file | include/AdblockPlus/FileSystem.h » ('j') | include/AdblockPlus/FileSystem.h » ('J')

Powered by Google App Engine
This is Rietveld