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

Issue 10702083: Add ContentViewDelegate (Closed)

Created:
8 years, 5 months ago by mkosiba (inactive)
Modified:
8 years, 3 months ago
Reviewers:
Ted C, joth, Yaron, boliu
CC:
joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, Leandro GraciĆ” Gil, android-webview-reviews_google.com, boliu
Visibility:
Public.

Description

[Android] Add IO thread delegate for request intercepting. This is to make it possible for a ResourceThrottle (which runs on the IO thread) to call a WebViewClient method. This requires caching the RenderViewHost<->WebContents relationship in a threadsafe way. BUG=138481 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157533

Patch Set 1 #

Patch Set 2 : it builds (but other code in chrome/ doesn't...) #

Patch Set 3 : it builds (but other code in chrome/ doesn't...) #

Total comments: 4

Patch Set 4 : rewritten for the new android_webview folder #

Total comments: 22

Patch Set 5 : addressed feedback #

Total comments: 16

Patch Set 6 : fix nits #

Total comments: 18

Patch Set 7 : feedback + rebase #

Patch Set 8 : base/android fixes #

Patch Set 9 : rebase #

Patch Set 10 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -12 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 3 chunks +10 lines, -0 lines 0 comments Download
A android_webview/native/aw_contents_io_thread_client.h View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 0 comments Download
A android_webview/native/aw_contents_io_thread_client.cc View 1 2 3 4 5 6 1 chunk +210 lines, -0 lines 0 comments Download
M android_webview/native/intercepted_request_data.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M android_webview/native/intercepted_request_data.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 2 3 4 5 6 2 chunks +8 lines, -5 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M base/android/jni_helper.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M base/android/jni_helper.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mkosiba (inactive)
Hey! Very early work in progress on adding a way to access stuff that currently ...
8 years, 5 months ago (2012-07-03 17:12:16 UTC) #1
mkosiba (inactive)
8 years, 5 months ago (2012-07-04 16:59:31 UTC) #2
Yaron
+Shashi who's adding the ant xml for chrome/ downstream. I just took a quick-pass. I ...
8 years, 5 months ago (2012-07-10 06:34:55 UTC) #3
Yaron
On 2012/07/10 06:34:55, Yaron wrote: > +Shashi who's adding the ant xml for chrome/ downstream. ...
8 years, 5 months ago (2012-07-10 06:37:17 UTC) #4
shashi
Martin, FYI we are re-factoring some ant build files downstream, chrome.xml will become much simpler.
8 years, 5 months ago (2012-07-12 22:21:07 UTC) #5
mkosiba (inactive)
tests and rest of code is coming soon, sending this out to get initial feedback ...
8 years, 3 months ago (2012-08-31 17:05:13 UTC) #6
joth
sorry, almost 2 months since you sent this and I never commented :-( Still, now ...
8 years, 3 months ago (2012-09-01 01:24:13 UTC) #7
boliu
http://codereview.chromium.org/10702083/diff/10001/android_webview/native/aw_contents_io_thread_delegate.cc File android_webview/native/aw_contents_io_thread_delegate.cc (right): http://codereview.chromium.org/10702083/diff/10001/android_webview/native/aw_contents_io_thread_delegate.cc#newcode56 android_webview/native/aw_contents_io_thread_delegate.cc:56: RenderViewHostToWebContentsMapType g_rvh_to_web_contents_map; WebContents::FromRenderViewHost can't be used here instead because ...
8 years, 3 months ago (2012-09-06 00:46:23 UTC) #8
mkosiba (inactive)
new patch out http://codereview.chromium.org/10702083/diff/10001/android_webview/native/aw_contents_io_thread_delegate.cc File android_webview/native/aw_contents_io_thread_delegate.cc (right): http://codereview.chromium.org/10702083/diff/10001/android_webview/native/aw_contents_io_thread_delegate.cc#newcode44 android_webview/native/aw_contents_io_thread_delegate.cc:44: } // namespace BASE_HASH_NAMESPACE On 2012/09/01 ...
8 years, 3 months ago (2012-09-11 01:22:24 UTC) #9
joth
http://codereview.chromium.org/10702083/diff/16002/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java File android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java (right): http://codereview.chromium.org/10702083/diff/16002/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java#newcode19 android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java:19: public interface AwContentsIoThreadDelegateImpl { Seems funky to have an ...
8 years, 3 months ago (2012-09-11 02:06:49 UTC) #10
mkosiba (inactive)
new patch out http://codereview.chromium.org/10702083/diff/16002/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java File android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java (right): http://codereview.chromium.org/10702083/diff/16002/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java#newcode19 android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadDelegate.java:19: public interface AwContentsIoThreadDelegateImpl { On 2012/09/11 ...
8 years, 3 months ago (2012-09-13 01:48:25 UTC) #11
joth
lgtm, this form is much easier to read. Thanks! http://codereview.chromium.org/10702083/diff/15002/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): http://codereview.chromium.org/10702083/diff/15002/android_webview/native/aw_contents.cc#newcode108 android_webview/native/aw_contents.cc:108: ...
8 years, 3 months ago (2012-09-13 20:09:12 UTC) #12
mkosiba (inactive)
new version (addressed feedback + rebase) is up. PTAL http://codereview.chromium.org/10702083/diff/15002/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): http://codereview.chromium.org/10702083/diff/15002/android_webview/native/aw_contents.cc#newcode108 android_webview/native/aw_contents.cc:108: ...
8 years, 3 months ago (2012-09-17 17:48:22 UTC) #13
mkosiba (inactive)
ah.. missed these, now fixed. http://codereview.chromium.org/10702083/diff/15002/base/android/jni_helper.cc File base/android/jni_helper.cc (right): http://codereview.chromium.org/10702083/diff/15002/base/android/jni_helper.cc#newcode59 base/android/jni_helper.cc:59: base::android::ScopedJavaLocalRef<jobject> pinnedObj = other.get(env); ...
8 years, 3 months ago (2012-09-17 17:55:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10702083/27001
8 years, 3 months ago (2012-09-18 08:48:39 UTC) #15
commit-bot: I haz the power
Retried try job too often for step(s) crypto_unittests, unit_tests, cacheinvalidation_unittests, remoting_unittests, jingle_unittests, nacl_integration, ipc_tests, interactive_ui_tests, ...
8 years, 3 months ago (2012-09-18 08:53:46 UTC) #16
commit-bot: I haz the power
8 years, 3 months ago (2012-09-18 11:00:00 UTC) #17

Powered by Google App Engine
This is Rietveld 408576698