[android_webview] Introduce AwAssets to reference assets inside the apk.
commit1b9f6bf9c0126652ae2b1aea33fc8032832472f0
authorprimiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 18 Jul 2014 22:50:46 +0000 (18 22:50 +0000)
committerprimiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 18 Jul 2014 22:50:46 +0000 (18 22:50 +0000)
tree425ab9aa4b62da16e3114dc010937dfb140fd73c
parentc2baa092fcb370d3788ab6ae53079773706e7158
[android_webview] Introduce AwAssets to reference assets inside the apk.

This change introduces a utility class AwAssets, accessible by native,
which is able to retrieve references (fd + offset + size) of assets
inside the apk. This is to enable direct mmap of uncompressed assets.
This change does NOT introduce yet any change to the WebView apk itself.
At current state, no behavioral change is intended.

BUG=394502

Review URL: https://codereview.chromium.org/401743003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284238 0039d316-1c4b-4281-b951-d872f2087c98
android_webview/java/src/org/chromium/android_webview/AwAssets.java [new file with mode: 0644]
android_webview/native/android_webview_jni_registrar.cc
android_webview/native/aw_assets.cc [new file with mode: 0644]
android_webview/native/aw_assets.h [new file with mode: 0644]
android_webview/native/webview_native.gyp
base/android/jni_array.cc
base/android/jni_array.h