Index: src/JsEngine.cpp |
=================================================================== |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -6,13 +6,14 @@ |
namespace |
{ |
v8::Handle<v8::Context> CreateContext( |
+ const AdblockPlus::AppInfo& appInfo, |
AdblockPlus::ErrorCallback& errorCallback, |
AdblockPlus::WebRequest& webRequest) |
{ |
const v8::Locker locker(v8::Isolate::GetCurrent()); |
const v8::HandleScope handleScope; |
const v8::Handle<v8::ObjectTemplate> global = |
- AdblockPlus::GlobalJsObject::Create(errorCallback, webRequest); |
+ AdblockPlus::GlobalJsObject::Create(appInfo, errorCallback, webRequest); |
return v8::Context::New(0, global); |
} |
@@ -63,10 +64,12 @@ |
{ |
} |
-AdblockPlus::JsEngine::JsEngine(const FileReader* const fileReader, |
+AdblockPlus::JsEngine::JsEngine(const AppInfo& appInfo, |
+ const FileReader* const fileReader, |
WebRequest* const webRequest, |
ErrorCallback* const errorCallback) |
- : fileReader(fileReader), context(CreateContext(*errorCallback, *webRequest)) |
+ : fileReader(fileReader), |
+ context(CreateContext(appInfo, *errorCallback, *webRequest)) |
{ |
} |