From 5ce09684216ed6b74836de9bd056b8f15bd66a4e Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 25 May 2016 16:16:32 -0700 Subject: Remove CFX_PrivateData from CPDF_Document Replace it with two generic slots for Links and Codec usage. Since the codec is at a lower layer than the document, we don't provide separate get/set methods, since having a document upon which to call these would be a layering violation. Do the same for the Links for simplicity. Review-Url: https://codereview.chromium.org/2005193003 --- core/fxcodec/codec/ccodec_jbig2module.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/fxcodec/codec/ccodec_jbig2module.h') diff --git a/core/fxcodec/codec/ccodec_jbig2module.h b/core/fxcodec/codec/ccodec_jbig2module.h index 20578c8cdb..a967e0b997 100644 --- a/core/fxcodec/codec/ccodec_jbig2module.h +++ b/core/fxcodec/codec/ccodec_jbig2module.h @@ -7,7 +7,9 @@ #ifndef CORE_FXCODEC_CODEC_CCODEC_JBIG2MODULE_H_ #define CORE_FXCODEC_CODEC_CCODEC_JBIG2MODULE_H_ -#include "core/fxcrt/include/fx_system.h" +#include + +#include "core/fxcrt/include/fx_basic.h" class CPDF_StreamAcc; class IFX_Pause; @@ -19,7 +21,7 @@ class CCodec_Jbig2Module { void* CreateJbig2Context(); FXCODEC_STATUS StartDecode(void* pJbig2Context, - CFX_PrivateData* pPrivateData, + std::unique_ptr* pContextHolder, uint32_t width, uint32_t height, CPDF_StreamAcc* src_stream, -- cgit v1.2.3