| 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-present eyeo GmbH | 3  * Copyright (C) 2006-present 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 132         .property("errorCount", &DownloadableSubscription::GetErrorCount, &Downl
     oadableSubscription::SetErrorCount) | 132         .property("errorCount", &DownloadableSubscription::GetErrorCount, &Downl
     oadableSubscription::SetErrorCount) | 
| 133         .property("dataRevision", &DownloadableSubscription::GetDataRevision, &D
     ownloadableSubscription::SetDataRevision) | 133         .property("dataRevision", &DownloadableSubscription::GetDataRevision, &D
     ownloadableSubscription::SetDataRevision) | 
| 134         .property("requiredVersion", &DownloadableSubscription::GetRequiredVersi
     on, &DownloadableSubscription::SetRequiredVersion) | 134         .property("requiredVersion", &DownloadableSubscription::GetRequiredVersi
     on, &DownloadableSubscription::SetRequiredVersion) | 
| 135         .property("downloadCount", &DownloadableSubscription::GetDownloadCount, 
     &DownloadableSubscription::SetDownloadCount) | 135         .property("downloadCount", &DownloadableSubscription::GetDownloadCount, 
     &DownloadableSubscription::SetDownloadCount) | 
| 136         .class_function("parseDownload", &DownloadableSubscription::ParseDownloa
     d) | 136         .class_function("parseDownload", &DownloadableSubscription::ParseDownloa
     d) | 
| 137         .function("serialize", &DownloadableSubscription::Serialize); | 137         .function("serialize", &DownloadableSubscription::Serialize); | 
| 138 | 138 | 
| 139     class_<DownloadableSubscription_Parser>("DownloadableSubscription_Parser") | 139     class_<DownloadableSubscription_Parser>("DownloadableSubscription_Parser") | 
| 140         .property("redirect", &DownloadableSubscription_Parser::GetRedirect) | 140         .property("redirect", &DownloadableSubscription_Parser::GetRedirect) | 
| 141         .property("homepage", &DownloadableSubscription_Parser::GetHomepage) | 141         .property("homepage", &DownloadableSubscription_Parser::GetHomepage) | 
|  | 142         .property("error",  &DownloadableSubscription_Parser::GetError) | 
| 142         .function("process", &DownloadableSubscription_Parser::Process) | 143         .function("process", &DownloadableSubscription_Parser::Process) | 
| 143         .function("verifyChecksum", &DownloadableSubscription_Parser::VerifyChec
     ksum) | 144         .function("verifyChecksum", &DownloadableSubscription_Parser::VerifyChec
     ksum) | 
| 144         .function("finalize", &DownloadableSubscription_Parser::Finalize); | 145         .function("finalize", &DownloadableSubscription_Parser::Finalize); | 
| 145 | 146 | 
| 146     singleton<FilterStorage>("FilterStorage", &FilterStorage::GetInstance) | 147     singleton<FilterStorage>("FilterStorage", &FilterStorage::GetInstance) | 
| 147         .property("subscriptionCount", &FilterStorage::GetSubscriptionCount) | 148         .property("subscriptionCount", &FilterStorage::GetSubscriptionCount) | 
| 148         .function("subscriptionAt", &FilterStorage::SubscriptionAt) | 149         .function("subscriptionAt", &FilterStorage::SubscriptionAt) | 
| 149         .function("indexOfSubscription", &FilterStorage::IndexOfSubscription) | 150         .function("indexOfSubscription", &FilterStorage::IndexOfSubscription) | 
| 150         .function("getSubscriptionForFilter", &FilterStorage::GetSubscriptionFor
     Filter) | 151         .function("getSubscriptionForFilter", &FilterStorage::GetSubscriptionFor
     Filter) | 
| 151         .function("addSubscription", &FilterStorage::AddSubscription) | 152         .function("addSubscription", &FilterStorage::AddSubscription) | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 183   } | 184   } | 
| 184   catch (const std::exception& e) | 185   catch (const std::exception& e) | 
| 185   { | 186   { | 
| 186     EM_ASM_ARGS( | 187     EM_ASM_ARGS( | 
| 187       console.error("Error occurred generating JavaScript bindings: " + | 188       console.error("Error occurred generating JavaScript bindings: " + | 
| 188           Module.AsciiToString($0)), e.what() | 189           Module.AsciiToString($0)), e.what() | 
| 189     ); | 190     ); | 
| 190     return 1; | 191     return 1; | 
| 191   } | 192   } | 
| 192 } | 193 } | 
| OLD | NEW | 
|---|