| 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_SCOPE_INLINE_H_ | 7 #ifndef FXJSE_SCOPE_INLINE_H_ |
| 8 #define XFA_FXJSE_SCOPE_INLINE_H_ | 8 #define FXJSE_SCOPE_INLINE_H_ |
| 9 | 9 |
| 10 #include "xfa/fxjse/context.h" | 10 #include "fxjse/context.h" |
| 11 #include "xfa/fxjse/runtime.h" | 11 #include "fxjse/runtime.h" |
| 12 | 12 |
| 13 class CFXJSE_ScopeUtil_IsolateHandle { | 13 class CFXJSE_ScopeUtil_IsolateHandle { |
| 14 public: | 14 public: |
| 15 explicit CFXJSE_ScopeUtil_IsolateHandle(v8::Isolate* pIsolate) | 15 explicit CFXJSE_ScopeUtil_IsolateHandle(v8::Isolate* pIsolate) |
| 16 : m_isolate(pIsolate), | 16 : m_isolate(pIsolate), m_iscope(pIsolate), m_hscope(pIsolate) {} |
| 17 m_iscope(pIsolate), | |
| 18 m_hscope(pIsolate) {} | |
| 19 v8::Isolate* GetIsolate() { return m_isolate; } | 17 v8::Isolate* GetIsolate() { return m_isolate; } |
| 20 | 18 |
| 21 private: | 19 private: |
| 22 CFXJSE_ScopeUtil_IsolateHandle(const CFXJSE_ScopeUtil_IsolateHandle&) = | 20 CFXJSE_ScopeUtil_IsolateHandle(const CFXJSE_ScopeUtil_IsolateHandle&) = |
| 23 delete; | 21 delete; |
| 24 void operator=(const CFXJSE_ScopeUtil_IsolateHandle&) = delete; | 22 void operator=(const CFXJSE_ScopeUtil_IsolateHandle&) = delete; |
| 25 void* operator new(size_t size) = delete; | 23 void* operator new(size_t size) = delete; |
| 26 void operator delete(void*, size_t) = delete; | 24 void operator delete(void*, size_t) = delete; |
| 27 | 25 |
| 28 v8::Isolate* m_isolate; | 26 v8::Isolate* m_isolate; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const CFXJSE_ScopeUtil_IsolateHandleContext&) = delete; | 65 const CFXJSE_ScopeUtil_IsolateHandleContext&) = delete; |
| 68 void operator=(const CFXJSE_ScopeUtil_IsolateHandleContext&) = delete; | 66 void operator=(const CFXJSE_ScopeUtil_IsolateHandleContext&) = delete; |
| 69 void* operator new(size_t size) = delete; | 67 void* operator new(size_t size) = delete; |
| 70 void operator delete(void*, size_t) = delete; | 68 void operator delete(void*, size_t) = delete; |
| 71 | 69 |
| 72 CFXJSE_Context* m_context; | 70 CFXJSE_Context* m_context; |
| 73 CFXJSE_ScopeUtil_IsolateHandle m_parent; | 71 CFXJSE_ScopeUtil_IsolateHandle m_parent; |
| 74 v8::Context::Scope m_cscope; | 72 v8::Context::Scope m_cscope; |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 #endif // XFA_FXJSE_SCOPE_INLINE_H_ | 75 #endif // FXJSE_SCOPE_INLINE_H_ |
| OLD | NEW |