1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "android_webview/native/aw_resource.h"
7 #include "base/android/jni_array.h"
8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h"
10 #include "jni/AwResource_jni.h"
12 namespace android_webview
{
13 namespace AwResource
{
15 std::vector
<std::string
> GetConfigKeySystemUuidMapping() {
16 JNIEnv
* env
= base::android::AttachCurrentThread();
17 std::vector
<std::string
> key_system_uuid_mappings
;
18 ScopedJavaLocalRef
<jobjectArray
> mappings
=
19 Java_AwResource_getConfigKeySystemUuidMapping(env
);
20 base::android::AppendJavaStringArrayToStringVector(env
, mappings
.obj(),
21 &key_system_uuid_mappings
);
22 return key_system_uuid_mappings
;
25 bool RegisterAwResource(JNIEnv
* env
) {
26 return RegisterNativesImpl(env
);
29 } // namespace AwResource
30 } // namespace android_webview