From 4237aedc2efb0e7a8479148592af349addf86a89 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 10 Nov 2015 15:19:17 -0800 Subject: Merge to XFA: Keep "static" objects per-context rather than per isolate. Original Review URL: https://codereview.chromium.org/1424933013 . (cherry picked from commit 7d4c74d1b96d82681d49519c129262a1568e87d4) TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/1407063012 . --- fpdfsdk/src/javascript/JS_Runtime.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fpdfsdk/src/javascript/JS_Runtime.h') diff --git a/fpdfsdk/src/javascript/JS_Runtime.h b/fpdfsdk/src/javascript/JS_Runtime.h index db77eeb8ed..9e6b3abede 100644 --- a/fpdfsdk/src/javascript/JS_Runtime.h +++ b/fpdfsdk/src/javascript/JS_Runtime.h @@ -9,6 +9,7 @@ #include #include +#include #include "../../include/javascript/IJavaScript.h" #include "../../include/jsapi/fxjs_v8.h" @@ -77,6 +78,7 @@ class CJS_Runtime : public IJS_Runtime { v8::Isolate* m_isolate; bool m_isolateManaged; v8::Global m_context; + std::vector*> m_StaticObjects; std::set m_observers; }; -- cgit v1.2.3