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

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

Issue 29429555: Noissue - updated to libadblockplus revision dca8df9af1a7 (Closed)
Patch Set: Created May 4, 2017, 5:08 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 | « include/AdblockPlus/DefaultFileSystem.h ('k') | include/AdblockPlus/FilterEngine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 */ 74 */
75 virtual std::shared_ptr<std::istream> 75 virtual std::shared_ptr<std::istream>
76 Read(const std::string& path) const = 0; 76 Read(const std::string& path) const = 0;
77 77
78 /** 78 /**
79 * Writes to a file. 79 * Writes to a file.
80 * @param path File path. 80 * @param path File path.
81 * @param data Input stream with the data to write. 81 * @param data Input stream with the data to write.
82 */ 82 */
83 virtual void Write(const std::string& path, 83 virtual void Write(const std::string& path,
84 std::shared_ptr<std::istream> data) = 0; 84 std::istream& data) = 0;
85 85
86 /** 86 /**
87 * Moves a file (i.e.\ renames it). 87 * Moves a file (i.e.\ renames it).
88 * @param fromPath Current path to the file. 88 * @param fromPath Current path to the file.
89 * @param toPath New path to the file. 89 * @param toPath New path to the file.
90 */ 90 */
91 virtual void Move(const std::string& fromPath, 91 virtual void Move(const std::string& fromPath,
92 const std::string& toPath) = 0; 92 const std::string& toPath) = 0;
93 93
94 /** 94 /**
(...skipping 17 matching lines...) Expand all
112 virtual std::string Resolve(const std::string& path) const = 0; 112 virtual std::string Resolve(const std::string& path) const = 0;
113 }; 113 };
114 114
115 /** 115 /**
116 * Shared smart pointer to a `FileSystem` instance. 116 * Shared smart pointer to a `FileSystem` instance.
117 */ 117 */
118 typedef std::shared_ptr<FileSystem> FileSystemPtr; 118 typedef std::shared_ptr<FileSystem> FileSystemPtr;
119 } 119 }
120 120
121 #endif 121 #endif
OLDNEW
« no previous file with comments | « include/AdblockPlus/DefaultFileSystem.h ('k') | include/AdblockPlus/FilterEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld