Evolve mojo::CArray/mojo::ConstCArray towards a future base::Span API

At some point, //base may implement a span abstraction to represent a
lightweight view over an array of n elements of type T. This simplifies
CArray/ConstCArray to make it easier for potential migration in the
future:
- Add a size deducing helper for constructing from a statically-sized
  array.
- Reverse size_t and T* arguments to be more consistent with the usual
  argument order in STL.
- Remove public access to fields and add getters.
- Remove |max_size|: CArray can't really be resized upward, so just
  implement |subspan()| to support deserialization.

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I0116cd9a1f2e75e26ff515455267725324ee137e
Reviewed-on: https://chromium-review.googlesource.com/605029
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#493114}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 37048f2c9a8e6e95ed4dc1d36a5048d9a031c89e
diff --git a/public/typemaps/chrome_prompt_struct_traits.cc b/public/typemaps/chrome_prompt_struct_traits.cc
index d15c172..a24fe40 100644
--- a/public/typemaps/chrome_prompt_struct_traits.cc
+++ b/public/typemaps/chrome_prompt_struct_traits.cc
@@ -12,8 +12,8 @@
     const base::FilePath& file_path) {
 #if defined(OS_WIN)
   return ConstCArray<uint16_t>(
-      file_path.value().size(),
-      reinterpret_cast<const uint16_t*>(file_path.value().data()));
+      reinterpret_cast<const uint16_t*>(file_path.value().data()),
+      file_path.value().size());
 #else
   NOTREACHED();
   return ConstCArray<uint16_t>();