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 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 } | 212 } |
213 | 213 |
214 std::string Resolve(const std::string& path) const override | 214 std::string Resolve(const std::string& path) const override |
215 { | 215 { |
216 return path; | 216 return path; |
217 } | 217 } |
218 public: | 218 public: |
219 Scheduler scheduler; | 219 Scheduler scheduler; |
220 }; | 220 }; |
221 | 221 |
222 AdblockPlus::FilterEnginePtr CreateFilterEngine(LazyFileSystem& fileSystem, | 222 AdblockPlus::FilterEngine& CreateFilterEngine(LazyFileSystem& fileSystem, |
223 AdblockPlus::Platform& paltform, | 223 AdblockPlus::Platform& paltform, |
224 const AdblockPlus::FilterEngine::CreationParameters& creationParams = AdblockP
lus::FilterEngine::CreationParameters()); | 224 const AdblockPlus::FilterEngine::CreationParameters& creationParams = AdblockP
lus::FilterEngine::CreationParameters()); |
225 | 225 |
226 class NoopWebRequest : public AdblockPlus::IWebRequest | 226 class NoopWebRequest : public AdblockPlus::IWebRequest |
227 { | 227 { |
228 public: | 228 public: |
229 void GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders
, const GetCallback& callback) override | 229 void GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders
, const GetCallback& callback) override |
230 { | 230 { |
231 } | 231 } |
232 }; | 232 }; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 | 281 |
282 void TearDown() override | 282 void TearDown() override |
283 { | 283 { |
284 if (platform) | 284 if (platform) |
285 platform.reset(); | 285 platform.reset(); |
286 } | 286 } |
287 }; | 287 }; |
288 | 288 |
289 #endif | 289 #endif |
OLD | NEW |