Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: xfa/fxjse/runtime.h

Issue 2056663004: Move xfa/fxjse/ to fxjse/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxjse/include/fxjse.h ('k') | xfa/fxjse/runtime.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FXJSE_RUNTIME_H_
8 #define XFA_FXJSE_RUNTIME_H_
9
10 #include <vector>
11
12 #include "core/fxcrt/include/fx_basic.h"
13 #include "v8/include/v8.h"
14
15 class CFXJSE_RuntimeList;
16
17 class CFXJSE_RuntimeData {
18 public:
19 static CFXJSE_RuntimeData* Get(v8::Isolate* pIsolate);
20
21 v8::Isolate* m_pIsolate;
22 v8::Global<v8::FunctionTemplate> m_hRootContextGlobalTemplate;
23 v8::Global<v8::Context> m_hRootContext;
24
25 protected:
26 static CFXJSE_RuntimeData* Create(v8::Isolate* pIsolate);
27 CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {}
28 CFXJSE_RuntimeData();
29 CFXJSE_RuntimeData(const CFXJSE_RuntimeData&);
30 CFXJSE_RuntimeData& operator=(const CFXJSE_RuntimeData&);
31 };
32
33 class CFXJSE_IsolateTracker {
34 public:
35 typedef void (*DisposeCallback)(v8::Isolate*, bool bOwnedIsolate);
36 static CFXJSE_IsolateTracker* g_pInstance;
37
38 void Append(v8::Isolate* pIsolate);
39 void Remove(v8::Isolate* pIsolate, DisposeCallback lpfnDisposeCallback);
40 void RemoveAll(DisposeCallback lpfnDisposeCallback);
41
42 protected:
43 std::vector<v8::Isolate*> m_OwnedIsolates;
44 };
45
46 #endif // XFA_FXJSE_RUNTIME_H_
OLDNEW
« no previous file with comments | « xfa/fxjse/include/fxjse.h ('k') | xfa/fxjse/runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698