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

Unified Diff: shell/src/Main.cpp

Issue 10016005: Add API calls and stubs for filter matching and subscription management (Closed)
Patch Set: Created April 3, 2013, 12:42 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
Index: shell/src/Main.cpp
===================================================================
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -60,14 +60,13 @@
LibFileReader fileReader;
CerrErrorCallback errorCallback;
AdblockPlus::JsEngine jsEngine(&fileReader, 0);
- jsEngine.Load("adblockplus_compat.js");
- jsEngine.Load("adblockplus.js");
+ AdblockPlus::FilterEngine filterEngine(jsEngine);
CommandMap commands;
Add(commands, new GcCommand(jsEngine));
Add(commands, new HelpCommand(commands));
- Add(commands, new SubscriptionsCommand(jsEngine));
- Add(commands, new MatchesCommand());
+ Add(commands, new SubscriptionsCommand(filterEngine));
+ Add(commands, new MatchesCommand(filterEngine));
std::string commandLine;
while (ReadCommandLine(commandLine))

Powered by Google App Engine
This is Rietveld