Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/bindings/main.cpp

Issue 29606600: Issue 5146 - Implement DownloadableSubscription parsing in C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Removed Md5sum and associated code Created Aug. 14, 2018, 12:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/StringScanner.h ('k') | compiled/storage/FilterStorage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/bindings/main.cpp
===================================================================
--- a/compiled/bindings/main.cpp
+++ b/compiled/bindings/main.cpp
@@ -130,26 +130,34 @@
.property("softExpiration", &DownloadableSubscription::GetSoftExpiration, &DownloadableSubscription::SetSoftExpiration)
.property("lastDownload", &DownloadableSubscription::GetLastDownload, &DownloadableSubscription::SetLastDownload)
.property("downloadStatus", &DownloadableSubscription::GetDownloadStatus, &DownloadableSubscription::SetDownloadStatus)
.property("lastSuccess", &DownloadableSubscription::GetLastSuccess, &DownloadableSubscription::SetLastSuccess)
.property("errorCount", &DownloadableSubscription::GetErrorCount, &DownloadableSubscription::SetErrorCount)
.property("dataRevision", &DownloadableSubscription::GetDataRevision, &DownloadableSubscription::SetDataRevision)
.property("requiredVersion", &DownloadableSubscription::GetRequiredVersion, &DownloadableSubscription::SetRequiredVersion)
.property("downloadCount", &DownloadableSubscription::GetDownloadCount, &DownloadableSubscription::SetDownloadCount)
+ .class_function("parseDownload", &DownloadableSubscription::ParseDownload)
.function("serialize", &DownloadableSubscription::Serialize);
+ class_<DownloadableSubscription_Parser>("DownloadableSubscription_Parser")
+ .property("redirect", &DownloadableSubscription_Parser::GetRedirect)
+ .property("homepage", &DownloadableSubscription_Parser::GetHomepage)
+ .function("process", &DownloadableSubscription_Parser::Process)
+ .function("finalize", &DownloadableSubscription_Parser::Finalize);
+
singleton<FilterStorage>("FilterStorage", &FilterStorage::GetInstance)
.property("subscriptionCount", &FilterStorage::GetSubscriptionCount)
.function("subscriptionAt", &FilterStorage::SubscriptionAt)
.function("indexOfSubscription", &FilterStorage::IndexOfSubscription)
.function("getSubscriptionForFilter", &FilterStorage::GetSubscriptionForFilter)
.function("addSubscription", &FilterStorage::AddSubscription)
.function("removeSubscription", &FilterStorage::RemoveSubscription)
- .function("moveSubscription", &FilterStorage::MoveSubscription);
+ .function("moveSubscription", &FilterStorage::MoveSubscription)
+ .function("clearSubscriptionFilters", &FilterStorage::ClearSubscriptionFilters);
class_<ElemHide_SelectorList>("ElemHide_SelectorList")
.property("selectorCount", &ElemHide_SelectorList::GetSelectorCount)
.function("selectorAt", &ElemHide_SelectorList::SelectorAt)
.function("filterKeyAt", &ElemHide_SelectorList::FilterKeyAt);
class_<ElemHide>("ElemHide")
.class_function("create", &ElemHide::Create)
« no previous file with comments | « compiled/StringScanner.h ('k') | compiled/storage/FilterStorage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld