1 // Copyright 2018 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXCODEC_BMP_CFX_BMPCONTEXT_H_ 8 #define CORE_FXCODEC_BMP_CFX_BMPCONTEXT_H_ 9 10 #include "core/fxcodec/bmp/bmpmodule.h" 11 #include "core/fxcodec/bmp/cfx_bmpdecompressor.h" 12 #include "core/fxcodec/bmp/fx_bmp.h" 13 #include "core/fxcrt/unowned_ptr.h" 14 15 namespace fxcodec { 16 17 class CFX_BmpContext final : public ModuleIface::Context { 18 public: 19 CFX_BmpContext(BmpModule* pModule, BmpModule::Delegate* pDelegate); 20 ~CFX_BmpContext() override; 21 22 CFX_BmpDecompressor m_Bmp; 23 UnownedPtr<BmpModule> const m_pModule; 24 UnownedPtr<BmpModule::Delegate> const m_pDelegate; 25 }; 26 27 } // namespace fxcodec 28 29 #endif // CORE_FXCODEC_BMP_CFX_BMPCONTEXT_H_ 30