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

Unified Diff: shell/src/Main.cpp

Issue 10252013: Implemented curl support for web requests (Closed)
Patch Set: Unbitrotted the patch Created April 11, 2013, 4:33 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
@@ -54,18 +54,19 @@ namespace
}
}
int main()
{
try
{
LibFileReader fileReader;
+ AdblockPlus::DefaultWebRequest webRequest;
CerrErrorCallback errorCallback;
- AdblockPlus::JsEngine jsEngine(&fileReader, 0, 0);
+ AdblockPlus::JsEngine jsEngine(&fileReader, &webRequest, &errorCallback);
AdblockPlus::FilterEngine filterEngine(jsEngine);
CommandMap commands;
Add(commands, new GcCommand(jsEngine));
Add(commands, new HelpCommand(commands));
Add(commands, new FiltersCommand(filterEngine));
Add(commands, new SubscriptionsCommand(filterEngine));
Add(commands, new MatchesCommand(filterEngine));

Powered by Google App Engine
This is Rietveld