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

Unified Diff: src/WebRequestJsObject.h

Issue 29661564: Template out V8 and prepare for other JS engine implementations
Patch Set: Created Jan. 10, 2018, 1:29 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
« no previous file with comments | « src/Platform.cpp ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/WebRequestJsObject.h
===================================================================
--- a/src/WebRequestJsObject.h
+++ b/src/WebRequestJsObject.h
@@ -22,7 +22,17 @@
namespace AdblockPlus
{
- class JsEngine;
+ template <class T> class JsEngineTemplate;
+#ifndef JSENGINEIMPL
+#define JSENGINEIMPL JsEngineTemplate<JsEngineNamespaceImpl>
+#endif
+ typedef JSENGINEIMPL JsEngine;
+
+ template <class T> class JsValueTemplate;
+#ifndef JSVALUEIMPL
+#define JSVALUEIMPL JsValueTemplate<JsEngineNamespaceImpl>
+#endif
+ typedef JSVALUEIMPL JsValue;
namespace WebRequestJsObject
{
« no previous file with comments | « src/Platform.cpp ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld