| 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_RUNTIME_H_ | 7 #ifndef XFA_FXJSE_RUNTIME_H_ |
| 8 #define XFA_SRC_FXJSE_RUNTIME_H_ | 8 #define XFA_FXJSE_RUNTIME_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 #include "v8/include/v8.h" | 11 #include "v8/include/v8.h" |
| 12 | 12 |
| 13 class CFXJSE_RuntimeList; | 13 class CFXJSE_RuntimeList; |
| 14 | 14 |
| 15 class CFXJSE_RuntimeData { | 15 class CFXJSE_RuntimeData { |
| 16 protected: | 16 protected: |
| 17 CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} | 17 CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} |
| 18 | 18 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 void AppendRuntime(v8::Isolate* pIsolate); | 42 void AppendRuntime(v8::Isolate* pIsolate); |
| 43 void RemoveRuntime(v8::Isolate* pIsolate, | 43 void RemoveRuntime(v8::Isolate* pIsolate, |
| 44 RuntimeDisposeCallback lpfnDisposeCallback); | 44 RuntimeDisposeCallback lpfnDisposeCallback); |
| 45 void RemoveAllRuntimes(RuntimeDisposeCallback lpfnDisposeCallback); | 45 void RemoveAllRuntimes(RuntimeDisposeCallback lpfnDisposeCallback); |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 CFX_ArrayTemplate<v8::Isolate*> m_RuntimeList; | 48 CFX_ArrayTemplate<v8::Isolate*> m_RuntimeList; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 #endif // XFA_SRC_FXJSE_RUNTIME_H_ | 51 #endif // XFA_FXJSE_RUNTIME_H_ |
| OLD | NEW |