xref: /aosp_15_r20/external/pdfium/core/fxcodec/bmp/cfx_bmpcontext.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2018 The PDFium Authors
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/bmp_decoder.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 ProgressiveDecoderIface::Context {
18  public:
19   explicit CFX_BmpContext(BmpDecoder::Delegate* pDelegate);
20   ~CFX_BmpContext() override;
21 
22   CFX_BmpDecompressor m_Bmp;
23   UnownedPtr<BmpDecoder::Delegate> const m_pDelegate;
24 };
25 
26 }  // namespace fxcodec
27 
28 #endif  // CORE_FXCODEC_BMP_CFX_BMPCONTEXT_H_
29