summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_isolatetracker.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-12-04 15:42:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-04 15:42:15 +0000
commit53190d99102c9b3a5e0a8751e2f4f957d7736ccf (patch)
treea2709328fa393286a6c98504d5e00b949b62ad48 /fxjs/cfxjse_isolatetracker.h
parentf8f19dc2c1b66fbcc2be837c324cab3df0ff3671 (diff)
downloadpdfium-53190d99102c9b3a5e0a8751e2f4f957d7736ccf.tar.xz
Remove XFA isolate tracker
We don't add anything to the tracker lists so we can remove the tracker. The only thing the Initialize and Finialize methods are doing now is to trigger a v8::V8::Dispose which should happen automatically at exit anyway. Change-Id: I1f783ae5a1df3df63fb067ab30310791b6c44929 Reviewed-on: https://pdfium-review.googlesource.com/20192 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_isolatetracker.h')
-rw-r--r--fxjs/cfxjse_isolatetracker.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/fxjs/cfxjse_isolatetracker.h b/fxjs/cfxjse_isolatetracker.h
index 5340d9b5c0..2bb16ca7ba 100644
--- a/fxjs/cfxjse_isolatetracker.h
+++ b/fxjs/cfxjse_isolatetracker.h
@@ -52,24 +52,4 @@ class CFXJSE_ScopeUtil_IsolateHandleRootContext {
v8::Context::Scope m_cscope;
};
-class CFXJSE_IsolateTracker {
- public:
- typedef void (*DisposeCallback)(v8::Isolate*, bool bOwnedIsolate);
-
- CFXJSE_IsolateTracker();
- ~CFXJSE_IsolateTracker();
-
- void Append(v8::Isolate* pIsolate,
- std::unique_ptr<v8::ArrayBuffer::Allocator> alloc);
- void Remove(v8::Isolate* pIsolate, DisposeCallback lpfnDisposeCallback);
- void RemoveAll(DisposeCallback lpfnDisposeCallback);
-
- static CFXJSE_IsolateTracker* g_pInstance;
-
- protected:
- std::vector<v8::Isolate*> m_OwnedIsolates;
- std::map<v8::Isolate*, std::unique_ptr<v8::ArrayBuffer::Allocator>>
- m_AllocatorMap;
-};
-
#endif // FXJS_CFXJSE_ISOLATETRACKER_H_