Rename CJS_{KeyValue,GlobalData,GlobalVariableArray}.{h,cpp} to CFX_

Because these implement a typed value system akin to base::Value,
and do not call into any JavaScript at this layer. We can
reduce the number of simliar-sounding CJS_Global* names by using
the CFX_ prefix, and the CFX_ prefix hints that we should be
able someday to write a unit test for this without needing JS.

Rename CFX_GlobalVariableArray to CFX_GlobalArray for brevity.

Change-Id: I7e16760eb86c1690a68f8ac05c9a84a63f506556
Reviewed-on: https://pdfium-review.googlesource.com/c/44912
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fxjs/cfx_globalarray.h b/fxjs/cfx_globalarray.h
new file mode 100644
index 0000000..76c4157
--- /dev/null
+++ b/fxjs/cfx_globalarray.h
@@ -0,0 +1,30 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef FXJS_CFX_GLOBALARRAY_H_
+#define FXJS_CFX_GLOBALARRAY_H_
+
+#include <memory>
+#include <vector>
+
+class CFX_KeyValue;
+
+class CFX_GlobalArray {
+ public:
+  CFX_GlobalArray();
+  ~CFX_GlobalArray();
+
+  CFX_GlobalArray& operator=(const CFX_GlobalArray& array);
+
+  void Add(std::unique_ptr<CFX_KeyValue> pKeyValue);
+  int Count() const;
+  CFX_KeyValue* GetAt(int index) const;
+
+ private:
+  std::vector<std::unique_ptr<CFX_KeyValue>> m_Array;
+};
+
+#endif  // FXJS_CFX_GLOBALARRAY_H_