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_FWL_CORE_FWL_THREADIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_THREADIMP_H_ |
8 #define XFA_FWL_CORE_FWL_THREADIMP_H_ | 8 #define XFA_FWL_CORE_FWL_THREADIMP_H_ |
9 | 9 |
10 #include "xfa/include/fwl/core/fwl_thread.h" // For FWL_HTHREAD. | 10 #include "xfa/fwl/core/ifwl_thread.h" |
11 | 11 |
12 class CFWL_NoteDriver; | 12 class CFWL_NoteDriver; |
13 class IFWL_NoteDriver; | 13 class IFWL_NoteDriver; |
| 14 class IFWL_NoteThread; |
14 | 15 |
15 class CFWL_ThreadImp { | 16 class CFWL_ThreadImp { |
16 public: | 17 public: |
17 virtual ~CFWL_ThreadImp() {} | 18 virtual ~CFWL_ThreadImp() {} |
18 IFWL_Thread* GetInterface() const { return m_pIface; } | 19 IFWL_Thread* GetInterface() const { return m_pIface; } |
19 virtual FWL_ERR Run(FWL_HTHREAD hThread); | 20 virtual FWL_ERR Run(FWL_HTHREAD hThread); |
20 | 21 |
21 protected: | 22 protected: |
22 CFWL_ThreadImp(IFWL_Thread* pIface) : m_pIface(pIface) {} | 23 CFWL_ThreadImp(IFWL_Thread* pIface) : m_pIface(pIface) {} |
23 | 24 |
24 private: | 25 private: |
25 IFWL_Thread* const m_pIface; | 26 IFWL_Thread* const m_pIface; |
26 }; | 27 }; |
27 | 28 |
28 class CFWL_NoteThreadImp : public CFWL_ThreadImp { | 29 class CFWL_NoteThreadImp : public CFWL_ThreadImp { |
29 public: | 30 public: |
30 CFWL_NoteThreadImp(IFWL_NoteThread* pIface); | 31 CFWL_NoteThreadImp(IFWL_NoteThread* pIface); |
31 virtual ~CFWL_NoteThreadImp(); | 32 virtual ~CFWL_NoteThreadImp(); |
32 | 33 |
33 FWL_ERR Run(FWL_HTHREAD hThread) override; | 34 FWL_ERR Run(FWL_HTHREAD hThread) override; |
34 virtual IFWL_NoteDriver* GetNoteDriver(); | 35 virtual IFWL_NoteDriver* GetNoteDriver(); |
35 | 36 |
36 protected: | 37 protected: |
37 CFWL_NoteDriver* const m_pNoteDriver; | 38 CFWL_NoteDriver* const m_pNoteDriver; |
38 }; | 39 }; |
39 | 40 |
40 #endif // XFA_FWL_CORE_FWL_THREADIMP_H_ | 41 #endif // XFA_FWL_CORE_FWL_THREADIMP_H_ |
OLD | NEW |