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_SRC_FXJSE_SCOPE_INLINE_H_ | 7 #ifndef XFA_FXJSE_SCOPE_INLINE_H_ |
8 #define XFA_SRC_FXJSE_SCOPE_INLINE_H_ | 8 #define XFA_FXJSE_SCOPE_INLINE_H_ |
9 | 9 |
10 #include "xfa/src/fxjse/context.h" | 10 #include "xfa/fxjse/context.h" |
11 #include "xfa/src/fxjse/runtime.h" | 11 #include "xfa/fxjse/runtime.h" |
12 | 12 |
13 class CFXJSE_ScopeUtil_IsolateHandle { | 13 class CFXJSE_ScopeUtil_IsolateHandle { |
14 protected: | 14 protected: |
15 v8::Isolate* m_isolate; | 15 v8::Isolate* m_isolate; |
16 v8::Locker m_locker; | 16 v8::Locker m_locker; |
17 v8::Isolate::Scope m_iscope; | 17 v8::Isolate::Scope m_iscope; |
18 v8::HandleScope m_hscope; | 18 v8::HandleScope m_hscope; |
19 | 19 |
20 public: | 20 public: |
21 explicit CFXJSE_ScopeUtil_IsolateHandle(v8::Isolate* pIsolate) | 21 explicit CFXJSE_ScopeUtil_IsolateHandle(v8::Isolate* pIsolate) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 | 99 |
100 private: | 100 private: |
101 CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext( | 101 CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext( |
102 const CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext&); | 102 const CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext&); |
103 void operator=(const CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext&); | 103 void operator=(const CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext&); |
104 void* operator new(size_t size); | 104 void* operator new(size_t size); |
105 void operator delete(void*, size_t); | 105 void operator delete(void*, size_t); |
106 }; | 106 }; |
107 | 107 |
108 #endif // XFA_SRC_FXJSE_SCOPE_INLINE_H_ | 108 #endif // XFA_FXJSE_SCOPE_INLINE_H_ |
OLD | NEW |