From 4ba37c6f6964f6a24fc4b8b48bc82c02edb70370 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 28 Sep 2016 14:49:01 -0700 Subject: Implement weak pointers These will be a replacement for CFX_CountRef in future CLs, since CFX_CountRef is manually incremented and error-prone. Review-Url: https://codereview.chromium.org/2377143002 --- BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 22f018eadd..778e03829c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -710,6 +710,7 @@ static_library("fxcrt") { "core/fxcrt/include/cfx_observable.h", "core/fxcrt/include/cfx_retain_ptr.h", "core/fxcrt/include/cfx_string_pool_template.h", + "core/fxcrt/include/cfx_weak_ptr.h", "core/fxcrt/include/fx_basic.h", "core/fxcrt/include/fx_coordinates.h", "core/fxcrt/include/fx_ext.h", @@ -1656,6 +1657,7 @@ test("pdfium_unittests") { "core/fxcrt/cfx_observable_unittest.cpp", "core/fxcrt/cfx_retain_ptr_unittest.cpp", "core/fxcrt/cfx_string_pool_template_unittest.cpp", + "core/fxcrt/cfx_weak_ptr_unittest.cpp", "core/fxcrt/fx_basic_bstring_unittest.cpp", "core/fxcrt/fx_basic_gcc_unittest.cpp", "core/fxcrt/fx_basic_memmgr_unittest.cpp", -- cgit v1.2.3