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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void RemoveFromList(); | 70 void RemoveFromList(); |
71 | 71 |
72 bool operator==(const Filter& filter) const; | 72 bool operator==(const Filter& filter) const; |
73 | 73 |
74 /** | 74 /** |
75 * Creates a wrapper for an existing JavaScript filter object. | 75 * Creates a wrapper for an existing JavaScript filter object. |
76 * Normally you shouldn't call this directly, but use | 76 * Normally you shouldn't call this directly, but use |
77 * FilterEngine::GetFilter() instead. | 77 * FilterEngine::GetFilter() instead. |
78 * @param value JavaScript filter object. | 78 * @param value JavaScript filter object. |
79 */ | 79 */ |
80 Filter(JsValuePtr value); | 80 Filter(JsValue&& value); |
81 }; | 81 }; |
82 | 82 |
83 /** | 83 /** |
84 * Wrapper for a subscription object. | 84 * Wrapper for a subscription object. |
85 * There are no accessors for most | 85 * There are no accessors for most |
86 * [subscription properties](https://adblockplus.org/jsdoc/adblockplus/symbols
/Subscription.html), | 86 * [subscription properties](https://adblockplus.org/jsdoc/adblockplus/symbols
/Subscription.html), |
87 * use `GetProperty()` to retrieve them by name. | 87 * use `GetProperty()` to retrieve them by name. |
88 */ | 88 */ |
89 class Subscription : public JsValue, | 89 class Subscription : public JsValue, |
90 public std::enable_shared_from_this<Subscription> | 90 public std::enable_shared_from_this<Subscription> |
(...skipping 28 matching lines...) Expand all Loading... |
119 bool IsUpdating(); | 119 bool IsUpdating(); |
120 | 120 |
121 bool operator==(const Subscription& subscription) const; | 121 bool operator==(const Subscription& subscription) const; |
122 | 122 |
123 /** | 123 /** |
124 * Creates a wrapper for an existing JavaScript subscription object. | 124 * Creates a wrapper for an existing JavaScript subscription object. |
125 * Normally you shouldn't call this directly, but use | 125 * Normally you shouldn't call this directly, but use |
126 * FilterEngine::GetSubscription() instead. | 126 * FilterEngine::GetSubscription() instead. |
127 * @param value JavaScript subscription object. | 127 * @param value JavaScript subscription object. |
128 */ | 128 */ |
129 Subscription(JsValuePtr value); | 129 Subscription(JsValue&& value); |
130 }; | 130 }; |
131 | 131 |
132 /** | 132 /** |
133 * Shared smart pointer to a `Filter` instance. | 133 * Shared smart pointer to a `Filter` instance. |
134 */ | 134 */ |
135 typedef std::shared_ptr<Filter> FilterPtr; | 135 typedef std::shared_ptr<Filter> FilterPtr; |
136 | 136 |
137 /** | 137 /** |
138 * Shared smart pointer to a `Subscription` instance. | 138 * Shared smart pointer to a `Subscription` instance. |
139 */ | 139 */ |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 const JsValueList& params); | 439 const JsValueList& params); |
440 FilterPtr GetWhitelistingFilter(const std::string& url, | 440 FilterPtr GetWhitelistingFilter(const std::string& url, |
441 ContentType contentType, const std::string& documentUrl) const; | 441 ContentType contentType, const std::string& documentUrl) const; |
442 FilterPtr GetWhitelistingFilter(const std::string& url, | 442 FilterPtr GetWhitelistingFilter(const std::string& url, |
443 ContentType contentType, | 443 ContentType contentType, |
444 const std::vector<std::string>& documentUrls) const; | 444 const std::vector<std::string>& documentUrls) const; |
445 }; | 445 }; |
446 } | 446 } |
447 | 447 |
448 #endif | 448 #endif |
OLD | NEW |