From 125eb3093a4632ee519041201ca904680f3a2245 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 27 Jul 2018 21:17:06 +0000 Subject: Tag XFA data bound to V8 Objects. Because we don't want to trust anything V8 gives us back. Use a deep namespace so we can have a short declaration in the structs, but avoid collisions. Change-Id: Ibb832a5dcd34c652159c3343dd70c9e2ee561537 Reviewed-on: https://pdfium-review.googlesource.com/38972 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fxjs/fxjse.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fxjs/fxjse.cpp') diff --git a/fxjs/fxjse.cpp b/fxjs/fxjse.cpp index 68adaa5dd3..44849fdfec 100644 --- a/fxjs/fxjse.cpp +++ b/fxjs/fxjse.cpp @@ -6,6 +6,15 @@ #include "fxjs/fxjse.h" +namespace pdfium { +namespace fxjse { + +const char kFuncTag[] = "function descriptor tag"; +const char kClassTag[] = "class descriptor tag"; + +} // namespace fxjse +} // namespace pdfium + CFXJSE_HostObject::CFXJSE_HostObject() = default; CFXJSE_HostObject::~CFXJSE_HostObject() = default; -- cgit v1.2.3