From 8273b37f032a2d9e8e4a83eeda43641365f311a2 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 12 Oct 2018 17:50:18 +0000 Subject: Forward declare more in codec code. Change-Id: I8060ada299f845a9198a6e83d31d128bd4bf09bc Reviewed-on: https://pdfium-review.googlesource.com/c/43870 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- core/fxcodec/gif/cfx_gifcontext.cpp | 1 + core/fxcodec/gif/cfx_gifcontext.h | 3 ++- core/fxcodec/gif/cfx_gifcontext_unittest.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'core/fxcodec/gif') diff --git a/core/fxcodec/gif/cfx_gifcontext.cpp b/core/fxcodec/gif/cfx_gifcontext.cpp index 076331f418..7a95863afd 100644 --- a/core/fxcodec/gif/cfx_gifcontext.cpp +++ b/core/fxcodec/gif/cfx_gifcontext.cpp @@ -10,6 +10,7 @@ #include #include "core/fxcodec/codec/ccodec_gifmodule.h" +#include "core/fxcodec/codec/cfx_codec_memory.h" #include "core/fxcodec/gif/cfx_gif.h" #include "third_party/base/ptr_util.h" #include "third_party/base/stl_util.h" diff --git a/core/fxcodec/gif/cfx_gifcontext.h b/core/fxcodec/gif/cfx_gifcontext.h index 4cf84a5ac6..5febb5940b 100644 --- a/core/fxcodec/gif/cfx_gifcontext.h +++ b/core/fxcodec/gif/cfx_gifcontext.h @@ -11,13 +11,14 @@ #include #include "core/fxcodec/codec/ccodec_gifmodule.h" -#include "core/fxcodec/codec/cfx_codec_memory.h" #include "core/fxcodec/gif/cfx_gif.h" #include "core/fxcodec/gif/cfx_lzwdecompressor.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/unowned_ptr.h" #include "third_party/base/span.h" +class CFX_CodecMemory; + class CFX_GifContext : public CodecModuleIface::Context { public: CFX_GifContext(CCodec_GifModule* gif_module, diff --git a/core/fxcodec/gif/cfx_gifcontext_unittest.cpp b/core/fxcodec/gif/cfx_gifcontext_unittest.cpp index 9b081a4183..aa18467209 100644 --- a/core/fxcodec/gif/cfx_gifcontext_unittest.cpp +++ b/core/fxcodec/gif/cfx_gifcontext_unittest.cpp @@ -6,6 +6,7 @@ #include +#include "core/fxcodec/codec/cfx_codec_memory.h" #include "testing/gtest/include/gtest/gtest.h" class CFX_GifContextForTest final : public CFX_GifContext { -- cgit v1.2.3