OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXJSE_RUNTIME_H_ | 7 #ifndef FXJSE_RUNTIME_H_ |
8 #define XFA_FXJSE_RUNTIME_H_ | 8 #define FXJSE_RUNTIME_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "core/fxcrt/include/fx_basic.h" | 12 #include "core/fxcrt/include/fx_basic.h" |
13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
14 | 14 |
15 class CFXJSE_RuntimeList; | 15 class CFXJSE_RuntimeList; |
16 | 16 |
17 class CFXJSE_RuntimeData { | 17 class CFXJSE_RuntimeData { |
18 public: | 18 public: |
(...skipping 17 matching lines...) Expand all Loading... |
36 static CFXJSE_IsolateTracker* g_pInstance; | 36 static CFXJSE_IsolateTracker* g_pInstance; |
37 | 37 |
38 void Append(v8::Isolate* pIsolate); | 38 void Append(v8::Isolate* pIsolate); |
39 void Remove(v8::Isolate* pIsolate, DisposeCallback lpfnDisposeCallback); | 39 void Remove(v8::Isolate* pIsolate, DisposeCallback lpfnDisposeCallback); |
40 void RemoveAll(DisposeCallback lpfnDisposeCallback); | 40 void RemoveAll(DisposeCallback lpfnDisposeCallback); |
41 | 41 |
42 protected: | 42 protected: |
43 std::vector<v8::Isolate*> m_OwnedIsolates; | 43 std::vector<v8::Isolate*> m_OwnedIsolates; |
44 }; | 44 }; |
45 | 45 |
46 #endif // XFA_FXJSE_RUNTIME_H_ | 46 #endif // FXJSE_RUNTIME_H_ |
OLD | NEW |