From 27e364389e507f69ee9dc256cd4dbe558d05f887 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Fri, 13 Apr 2018 16:44:05 +0000 Subject: Hide XML parsing inside CXFA_XMLLocale This CL moves the parsing of the XML document into a static method of CXFA_XMLLocale. This removes the need for CXFA_LocaleMgr to care about the XML parser used. Change-Id: I04d14d78f458bfb37f0370fac2eb752e9840bfd6 Reviewed-on: https://pdfium-review.googlesource.com/30390 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- xfa/fxfa/parser/cxfa_xmllocale.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_xmllocale.h') diff --git a/xfa/fxfa/parser/cxfa_xmllocale.h b/xfa/fxfa/parser/cxfa_xmllocale.h index 9deaed20d8..d1d21e83f1 100644 --- a/xfa/fxfa/parser/cxfa_xmllocale.h +++ b/xfa/fxfa/parser/cxfa_xmllocale.h @@ -10,11 +10,15 @@ #include #include "core/fxcrt/locale_iface.h" +#include "third_party/base/ptr_util.h" +#include "third_party/base/span.h" class CXML_Element; class CXFA_XMLLocale : public LocaleIface { public: + static std::unique_ptr Create(pdfium::span data); + explicit CXFA_XMLLocale(std::unique_ptr pLocaleData); ~CXFA_XMLLocale() override; -- cgit v1.2.3