Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Issue 401743003: [android_webview] Introduce AwAssets to reference assets inside the apk. (Closed)

Created:
6 years, 5 months ago by Primiano Tucci (use gerrit)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org, benm (inactive), Ignacio Solla
Base URL:
https://chromium.googlesource.com/chromium/src.git@pakfiles
Project:
chromium
Visibility:
Public.

Description

[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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284238

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Address review comments #

Patch Set 3 : One char fix to make clang happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -0 lines) Patch
A android_webview/java/src/org/chromium/android_webview/AwAssets.java View 1 1 chunk +38 lines, -0 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
A android_webview/native/aw_assets.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
A android_webview/native/aw_assets.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M base/android/jni_array.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/android/jni_array.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Primiano Tucci (use gerrit)
6 years, 5 months ago (2014-07-18 01:14:52 UTC) #1
Torne
lgtm
6 years, 5 months ago (2014-07-18 01:34:04 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/401743003/diff/20001/android_webview/java/src/org/chromium/android_webview/AwAssets.java File android_webview/java/src/org/chromium/android_webview/AwAssets.java (right): https://codereview.chromium.org/401743003/diff/20001/android_webview/java/src/org/chromium/android_webview/AwAssets.java#newcode26 android_webview/java/src/org/chromium/android_webview/AwAssets.java:26: public static long[] OpenAsset(Context context, String fileName) { nit: ...
6 years, 5 months ago (2014-07-18 05:49:05 UTC) #3
benm (inactive)
Thanks Primiano! Looking great overall. https://codereview.chromium.org/401743003/diff/20001/android_webview/native/webview_native.gyp File android_webview/native/webview_native.gyp (right): https://codereview.chromium.org/401743003/diff/20001/android_webview/native/webview_native.gyp#newcode39 android_webview/native/webview_native.gyp:39: 'aw_assets.cc', and the header
6 years, 5 months ago (2014-07-18 14:59:18 UTC) #4
Primiano Tucci (use gerrit)
https://codereview.chromium.org/401743003/diff/20001/android_webview/java/src/org/chromium/android_webview/AwAssets.java File android_webview/java/src/org/chromium/android_webview/AwAssets.java (right): https://codereview.chromium.org/401743003/diff/20001/android_webview/java/src/org/chromium/android_webview/AwAssets.java#newcode26 android_webview/java/src/org/chromium/android_webview/AwAssets.java:26: public static long[] OpenAsset(Context context, String fileName) { On ...
6 years, 5 months ago (2014-07-18 17:03:30 UTC) #5
Primiano Tucci (use gerrit)
+nyquist for the changes in base/android/jni_array.[h|cc]
6 years, 5 months ago (2014-07-18 17:04:44 UTC) #6
nyquist
base/android lgtm
6 years, 5 months ago (2014-07-18 17:25:37 UTC) #7
mkosiba (inactive)
lgtm
6 years, 5 months ago (2014-07-18 18:29:44 UTC) #8
Primiano Tucci (use gerrit)
The CQ bit was checked by primiano@chromium.org
6 years, 5 months ago (2014-07-18 20:07:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/401743003/60001
6 years, 5 months ago (2014-07-18 20:09:55 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 22:50:48 UTC) #11
Message was sent while issue was closed.
Change committed as 284238

Powered by Google App Engine
This is Rietveld 408576698