OLD | NEW |
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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 #ifndef ADBLOCK_PLUS_IFILE_SYSTEM_H | 18 #ifndef ADBLOCK_PLUS_IFILE_SYSTEM_H |
19 #define ADBLOCK_PLUS_IFILE_SYSTEM_H | 19 #define ADBLOCK_PLUS_IFILE_SYSTEM_H |
20 | 20 |
21 #include <istream> | 21 #include <istream> |
22 #include <stdint.h> | 22 #include <cstdint> |
23 #include <string> | 23 #include <string> |
24 #include <memory> | 24 #include <memory> |
25 #include <vector> | 25 #include <vector> |
| 26 #include <functional> |
26 | 27 |
27 namespace AdblockPlus | 28 namespace AdblockPlus |
28 { | 29 { |
29 /** | 30 /** |
30 * File system interface. | 31 * File system interface. |
31 */ | 32 */ |
32 class IFileSystem | 33 class IFileSystem |
33 { | 34 { |
34 public: | 35 public: |
35 /** | 36 /** |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 virtual std::string Resolve(const std::string& path) const = 0; | 143 virtual std::string Resolve(const std::string& path) const = 0; |
143 }; | 144 }; |
144 | 145 |
145 /** | 146 /** |
146 * Shared smart pointer to a `IFileSystem` instance. | 147 * Shared smart pointer to a `IFileSystem` instance. |
147 */ | 148 */ |
148 typedef std::shared_ptr<IFileSystem> FileSystemPtr; | 149 typedef std::shared_ptr<IFileSystem> FileSystemPtr; |
149 } | 150 } |
150 | 151 |
151 #endif | 152 #endif |
OLD | NEW |