LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 * Shared smart pointer to a `Filter` instance. | 128 * Shared smart pointer to a `Filter` instance. |
129 */ | 129 */ |
130 typedef std::tr1::shared_ptr<Filter> FilterPtr; | 130 typedef std::tr1::shared_ptr<Filter> FilterPtr; |
131 | 131 |
132 /** | 132 /** |
133 * Shared smart pointer to a `Subscription` instance. | 133 * Shared smart pointer to a `Subscription` instance. |
134 */ | 134 */ |
135 typedef std::tr1::shared_ptr<Subscription> SubscriptionPtr; | 135 typedef std::tr1::shared_ptr<Subscription> SubscriptionPtr; |
136 | 136 |
137 /** | 137 /** |
138 * Main component of Libadblockplus. | 138 * Main component of libadblockplus. |
139 * It handles: | 139 * It handles: |
140 * - Filter management and matching. | 140 * - Filter management and matching. |
141 * - Subscription management and synchronization. | 141 * - Subscription management and synchronization. |
142 * - Update checks for the application. | 142 * - Update checks for the application. |
143 */ | 143 */ |
144 class FilterEngine | 144 class FilterEngine |
145 { | 145 { |
146 public: | 146 public: |
147 /** | 147 /** |
148 * Callback type invoked when an update is available. | 148 * Callback type invoked when an update is available. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 void InitDone(JsValueList& params); | 340 void InitDone(JsValueList& params); |
341 FilterPtr CheckFilterMatch(const std::string& url, | 341 FilterPtr CheckFilterMatch(const std::string& url, |
342 const std::string& contentType, | 342 const std::string& contentType, |
343 const std::string& documentUrl) const; | 343 const std::string& documentUrl) const; |
344 void UpdateCheckDone(const std::string& eventName, UpdaterCallback callback,
JsValueList& params); | 344 void UpdateCheckDone(const std::string& eventName, UpdaterCallback callback,
JsValueList& params); |
345 void FilterChanged(FilterChangeCallback callback, JsValueList& params); | 345 void FilterChanged(FilterChangeCallback callback, JsValueList& params); |
346 }; | 346 }; |
347 } | 347 } |
348 | 348 |
349 #endif | 349 #endif |
LEFT | RIGHT |