 Issue 10184021:
  Some refactoring of global JavaScript objects  (Closed)
    
  
    Issue 10184021:
  Some refactoring of global JavaScript objects  (Closed) 
  | Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 1 #ifndef ADBLOCK_PLUS_WEB_REQUEST_JS_OBJECT_H | 1 #ifndef ADBLOCK_PLUS_WEB_REQUEST_JS_OBJECT_H | 
| 2 #define ADBLOCK_PLUS_WEB_REQUEST_JS_OBJECT_H | 2 #define ADBLOCK_PLUS_WEB_REQUEST_JS_OBJECT_H | 
| 3 | 3 | 
| 4 #include <v8.h> | 4 #include <v8.h> | 
| 5 | 5 | 
| 6 namespace AdblockPlus | 6 namespace AdblockPlus | 
| 7 { | 7 { | 
| 8 class WebRequest; | 8 class JsEngine; | 
| 9 | 9 | 
| 10 namespace WebRequestJsObject | 10 namespace WebRequestJsObject | 
| 11 { | 11 { | 
| 12 v8::Handle<v8::ObjectTemplate> Create(WebRequest& webRequest); | 12 v8::Handle<v8::ObjectTemplate> Create(JsEngine& jsEngine); | 
| 13 } | 13 } | 
| 14 } | 14 } | 
| 15 | 15 | 
| 16 #endif | 16 #endif | 
| OLD | NEW |