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

Side by Side Diff: compiled/bindings.cpp

Issue 29398669: Issue 5063 - [emscripten] Make FilterNotifier calls more efficient (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Removed newValue and oldValue parameters Created April 15, 2017, 3:05 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 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 12 matching lines...) Expand all
23 #include "filter/RegExpFilter.h" 23 #include "filter/RegExpFilter.h"
24 #include "filter/BlockingFilter.h" 24 #include "filter/BlockingFilter.h"
25 #include "filter/WhitelistFilter.h" 25 #include "filter/WhitelistFilter.h"
26 #include "filter/ElemHideBase.h" 26 #include "filter/ElemHideBase.h"
27 #include "filter/ElemHideFilter.h" 27 #include "filter/ElemHideFilter.h"
28 #include "filter/ElemHideException.h" 28 #include "filter/ElemHideException.h"
29 #include "filter/ElemHideEmulationFilter.h" 29 #include "filter/ElemHideEmulationFilter.h"
30 #include "subscription/Subscription.h" 30 #include "subscription/Subscription.h"
31 #include "subscription/DownloadableSubscription.h" 31 #include "subscription/DownloadableSubscription.h"
32 #include "subscription/UserDefinedSubscription.h" 32 #include "subscription/UserDefinedSubscription.h"
33 #include "FilterNotifier.h"
33 34
34 EMSCRIPTEN_BINDINGS 35 EMSCRIPTEN_BINDINGS
35 { 36 {
36 class_<Filter>("Filter") 37 class_<Filter>("Filter")
37 .property("text", &Filter::GetText) 38 .property("text", &Filter::GetText)
38 .function("serialize", &Filter::Serialize) 39 .function("serialize", &Filter::Serialize)
39 .class_function("fromText", &Filter::FromText) 40 .class_function("fromText", &Filter::FromText)
40 .subclass_differentiator(&Filter::mType, { 41 .subclass_differentiator(&Filter::mType, {
41 {Filter::Type::INVALID, "InvalidFilter"}, 42 {Filter::Type::INVALID, "InvalidFilter"},
42 {Filter::Type::COMMENT, "CommentFilter"}, 43 {Filter::Type::COMMENT, "CommentFilter"},
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 .property("expires", &DownloadableSubscription::GetHardExpiration, &Downlo adableSubscription::SetHardExpiration) 117 .property("expires", &DownloadableSubscription::GetHardExpiration, &Downlo adableSubscription::SetHardExpiration)
117 .property("softExpiration", &DownloadableSubscription::GetSoftExpiration, &DownloadableSubscription::SetSoftExpiration) 118 .property("softExpiration", &DownloadableSubscription::GetSoftExpiration, &DownloadableSubscription::SetSoftExpiration)
118 .property("lastDownload", &DownloadableSubscription::GetLastDownload, &Dow nloadableSubscription::SetLastDownload) 119 .property("lastDownload", &DownloadableSubscription::GetLastDownload, &Dow nloadableSubscription::SetLastDownload)
119 .property("downloadStatus", &DownloadableSubscription::GetDownloadStatus, &DownloadableSubscription::SetDownloadStatus) 120 .property("downloadStatus", &DownloadableSubscription::GetDownloadStatus, &DownloadableSubscription::SetDownloadStatus)
120 .property("lastSuccess", &DownloadableSubscription::GetLastSuccess, &Downl oadableSubscription::SetLastSuccess) 121 .property("lastSuccess", &DownloadableSubscription::GetLastSuccess, &Downl oadableSubscription::SetLastSuccess)
121 .property("errors", &DownloadableSubscription::GetErrorCount, &Downloadabl eSubscription::SetErrorCount) 122 .property("errors", &DownloadableSubscription::GetErrorCount, &Downloadabl eSubscription::SetErrorCount)
122 .property("version", &DownloadableSubscription::GetDataRevision, &Download ableSubscription::SetDataRevision) 123 .property("version", &DownloadableSubscription::GetDataRevision, &Download ableSubscription::SetDataRevision)
123 .property("requiredVersion", &DownloadableSubscription::GetRequiredVersion , &DownloadableSubscription::SetRequiredVersion) 124 .property("requiredVersion", &DownloadableSubscription::GetRequiredVersion , &DownloadableSubscription::SetRequiredVersion)
124 .property("downloadCount", &DownloadableSubscription::GetDownloadCount, &D ownloadableSubscription::SetDownloadCount) 125 .property("downloadCount", &DownloadableSubscription::GetDownloadCount, &D ownloadableSubscription::SetDownloadCount)
125 .function("serialize", &DownloadableSubscription::Serialize); 126 .function("serialize", &DownloadableSubscription::Serialize);
127
128 custom_generator(&FilterNotifier::GenerateCustomBindings);
126 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld