Index: include/AdblockPlus/JsEngine.h |
=================================================================== |
--- a/include/AdblockPlus/JsEngine.h |
+++ b/include/AdblockPlus/JsEngine.h |
@@ -5,11 +5,11 @@ |
#include <string> |
#include <v8.h> |
-class ErrorCallback; |
-class FileReader; |
- |
namespace AdblockPlus |
{ |
+ class ErrorCallback; |
+ class FileReader; |
+ |
class JsError : public std::runtime_error |
{ |
public: |
@@ -27,6 +27,7 @@ |
const std::string& filename = ""); |
void Load(const std::string& scriptPath); |
std::string Call(const std::string& functionName); |
+ std::string GetGlobal(const std::string& name); |
void Gc(); |
private: |