| OLD | NEW |
| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void RemoveFromList(); | 68 void RemoveFromList(); |
| 69 | 69 |
| 70 bool operator==(const Filter& filter) const; | 70 bool operator==(const Filter& filter) const; |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 * Creates a wrapper for an existing JavaScript filter object. | 73 * Creates a wrapper for an existing JavaScript filter object. |
| 74 * Normally you shouldn't call this directly, but use | 74 * Normally you shouldn't call this directly, but use |
| 75 * FilterEngine::GetFilter() instead. | 75 * FilterEngine::GetFilter() instead. |
| 76 * @param value JavaScript filter object. | 76 * @param value JavaScript filter object. |
| 77 */ | 77 */ |
| 78 Filter(JsValuePtr value); | 78 Filter(JsValue&& value); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 /** | 81 /** |
| 82 * Wrapper for a subscription object. | 82 * Wrapper for a subscription object. |
| 83 */ | 83 */ |
| 84 class Subscription : public JsValue, | 84 class Subscription : public JsValue, |
| 85 public std::tr1::enable_shared_from_this<Subscription> | 85 public std::tr1::enable_shared_from_this<Subscription> |
| 86 { | 86 { |
| 87 public: | 87 public: |
| 88 /** | 88 /** |
| (...skipping 25 matching lines...) Expand all Loading... |
| 114 bool IsUpdating(); | 114 bool IsUpdating(); |
| 115 | 115 |
| 116 bool operator==(const Subscription& subscription) const; | 116 bool operator==(const Subscription& subscription) const; |
| 117 | 117 |
| 118 /** | 118 /** |
| 119 * Creates a wrapper for an existing JavaScript subscription object. | 119 * Creates a wrapper for an existing JavaScript subscription object. |
| 120 * Normally you shouldn't call this directly, but use | 120 * Normally you shouldn't call this directly, but use |
| 121 * FilterEngine::GetSubscription() instead. | 121 * FilterEngine::GetSubscription() instead. |
| 122 * @param value JavaScript subscription object. | 122 * @param value JavaScript subscription object. |
| 123 */ | 123 */ |
| 124 Subscription(JsValuePtr value); | 124 Subscription(JsValue&& value); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 /** | 127 /** |
| 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 */ |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 ContentType contentType, | 368 ContentType contentType, |
| 369 const std::string& documentUrl) const; | 369 const std::string& documentUrl) const; |
| 370 void UpdateAvailable(UpdateAvailableCallback callback, JsValueList& params); | 370 void UpdateAvailable(UpdateAvailableCallback callback, JsValueList& params); |
| 371 void UpdateCheckDone(const std::string& eventName, | 371 void UpdateCheckDone(const std::string& eventName, |
| 372 UpdateCheckDoneCallback callback, JsValueList& params); | 372 UpdateCheckDoneCallback callback, JsValueList& params); |
| 373 void FilterChanged(FilterChangeCallback callback, JsValueList& params); | 373 void FilterChanged(FilterChangeCallback callback, JsValueList& params); |
| 374 }; | 374 }; |
| 375 } | 375 } |
| 376 | 376 |
| 377 #endif | 377 #endif |
| OLD | NEW |