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

Unified Diff: src/FilterEngine.cpp

Issue 9987009: Interface for the libadblockplus API (Closed)
Patch Set: Rename to FilterEngine, add a dummy implementation Created March 26, 2013, 1:50 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 | « libadblockplus.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FilterEngine.cpp
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/FilterEngine.cpp
@@ -0,0 +1,40 @@
+#include <AdblockPlus.h>
+
+using namespace AdblockPlus;
+
+FilterEngine::FilterEngine(JsEngine& jsEngine) : jsEngine(jsEngine)
+{
+}
+
+void FilterEngine::AddSubscription(Subscription subscription)
+{
+}
+
+void FilterEngine::RemoveSubscription(const Subscription& subscription)
+{
+}
+
+std::vector<Subscription> FilterEngine::GetSubscriptions()
+{
+ return std::vector<Subscription>();
+}
+
+void FilterEngine::UpdateSubscriptionFilters(const Subscription& subscription)
+{
+}
+
+std::vector<Subscription> FilterEngine::FetchSubscriptionList()
+{
+ return std::vector<Subscription>();
+}
+
+bool FilterEngine::FiltersMatch(const std::string& url,
+ const std::string& contentType) const
+{
Oleksandr 2013/03/27 08:37:01 I guess it probably won't be an issue on Linux, bu
Felix Dahlke 2013/03/27 08:59:18 That's tricky actually... std::string works fine f
+ return false;
+}
+
+std::vector<std::string> FilterEngine::GetElementHidingRules() const
+{
+ return std::vector<std::string>();
+}
« no previous file with comments | « libadblockplus.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld