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

Issue 10946008: Componentize IgnoreNavigationResourceThrottle and add chrome and webview specific implementations. (Closed)

Created:
8 years, 3 months ago by mkosiba (inactive)
Modified:
8 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, boliu, John Knottenbelt
Visibility:
Public.

Description

Componentize IgnoreNavigationResourceThrottle and add chrome and webview specific implementations. This change moves the IgnoreNavigationResourceThrottle to a separate component as it will be shared between chrome/android and android_webview. This change also adds the chrome/ and android_webview/ specializations of the throttle (or more precisely the callback that is used to find the right method on the right delegate). BUG=130006 TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160945

Patch Set 1 #

Total comments: 18

Patch Set 2 : address feedback + rebase #

Patch Set 3 : moved jni to component, added Java test code #

Total comments: 19

Patch Set 4 : tests now work! #

Patch Set 5 : remove stray log statements #

Patch Set 6 : fix build break #

Total comments: 2

Patch Set 7 : rebased on top of Bo's server changes #

Patch Set 8 : move java targets under OS==android to fix build on linux #

Patch Set 9 : gyp should be happy now #

Patch Set 10 : fixed presubmit warning for jni_generator.py #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1142 lines, -541 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 chunks +4 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 6 chunks +17 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 2 chunks +1 line, -6 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java View 1 2 3 4 1 chunk +678 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/util/TestWebServer.java View 1 2 3 4 5 6 5 chunks +49 lines, -5 lines 1 comment Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/component/components.gyp View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
A chrome/browser/component/navigation_interception/DEPS View 1 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/component/navigation_interception/component_jni_registrar.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A + chrome/browser/component/navigation_interception/component_jni_registrar.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
A chrome/browser/component/navigation_interception/intercept_navigation_delegate.h View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/component/navigation_interception/intercept_navigation_delegate.cc View 1 2 3 1 chunk +109 lines, -0 lines 0 comments Download
A + chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
A + chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.cc View 1 2 5 chunks +7 lines, -3 lines 0 comments Download
A + chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
A chrome/browser/component/navigation_interception/java/src/org/chromium/chrome/browser/component/navigation_interception/InterceptNavigationDelegate.java View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/component/navigation_interception/navigation_interception.gypi View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.gypi View 1 2 3 4 5 6 7 8 1 chunk +41 lines, -37 lines 0 comments Download
D chrome/browser/renderer_host/intercept_navigation_resource_throttle.h View 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc View 1 chunk +0 lines, -119 lines 0 comments Download
D chrome/browser/renderer_host/intercept_navigation_resource_throttle_unittest.cc View 1 chunk +0 lines, -289 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
mkosiba (inactive)
Joi, Could you please check the component-related stuff? Joth, Please take a look at the ...
8 years, 3 months ago (2012-09-18 13:10:08 UTC) #1
Jói
LGTM for component bits. On Tue, Sep 18, 2012 at 1:10 PM, <mkosiba@chromium.org> wrote: > ...
8 years, 3 months ago (2012-09-18 14:20:24 UTC) #2
benm (inactive)
http://codereview.chromium.org/10946008/diff/1/android_webview/browser/aw_intercept_navigation_resource_throttle.h File android_webview/browser/aw_intercept_navigation_resource_throttle.h (right): http://codereview.chromium.org/10946008/diff/1/android_webview/browser/aw_intercept_navigation_resource_throttle.h#newcode1 android_webview/browser/aw_intercept_navigation_resource_throttle.h:1: #ifndef ANDROID_WEBVIEW_BROWSER_AW_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ copyright missing? http://codereview.chromium.org/10946008/diff/1/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc File android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc (right): http://codereview.chromium.org/10946008/diff/1/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc#newcode8 ...
8 years, 3 months ago (2012-09-19 11:04:04 UTC) #3
Jói
LGTM with a nit. http://codereview.chromium.org/10946008/diff/1/chrome/browser/component/navigation_interception/DEPS File chrome/browser/component/navigation_interception/DEPS (right): http://codereview.chromium.org/10946008/diff/1/chrome/browser/component/navigation_interception/DEPS#newcode4 chrome/browser/component/navigation_interception/DEPS:4: # Temporary until test case ...
8 years, 3 months ago (2012-09-24 12:27:13 UTC) #4
mkosiba (inactive)
http://codereview.chromium.org/10946008/diff/1/android_webview/browser/aw_intercept_navigation_resource_throttle.h File android_webview/browser/aw_intercept_navigation_resource_throttle.h (right): http://codereview.chromium.org/10946008/diff/1/android_webview/browser/aw_intercept_navigation_resource_throttle.h#newcode1 android_webview/browser/aw_intercept_navigation_resource_throttle.h:1: #ifndef ANDROID_WEBVIEW_BROWSER_AW_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ On 2012/09/19 11:04:04, benm wrote: > copyright ...
8 years, 2 months ago (2012-09-25 18:01:47 UTC) #5
joth
On 18 September 2012 06:10, <mkosiba@chromium.org> wrote: > Reviewers: Jói, joth, > > Message: > ...
8 years, 2 months ago (2012-09-25 19:02:04 UTC) #6
mkosiba (inactive)
On 2012/09/25 19:02:04, joth wrote: > Agree we don't want to force a shared *implementation* ...
8 years, 2 months ago (2012-10-01 15:47:36 UTC) #7
mkosiba (inactive)
Joth, Ben, New version is up for another round of feedback. Everything except for the ...
8 years, 2 months ago (2012-10-03 17:14:48 UTC) #8
joth
I like this, basically all lg2me except some nits and yr test TODO. https://codereview.chromium.org/10946008/diff/15001/android_webview/native/aw_contents.h File ...
8 years, 2 months ago (2012-10-03 22:01:32 UTC) #9
benm (inactive)
looks good, tiny nit! http://codereview.chromium.org/10946008/diff/15001/chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h File chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h (right): http://codereview.chromium.org/10946008/diff/15001/chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h#newcode34 chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h:34: bool /*has_user_gesture*/)> s/has/is/ ?
8 years, 2 months ago (2012-10-05 13:42:15 UTC) #10
mkosiba (inactive)
New patch out, PTAL https://codereview.chromium.org/10946008/diff/15001/android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java (right): https://codereview.chromium.org/10946008/diff/15001/android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java#newcode5 android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java:5: package org.chromium.android_webview.test; On 2012/10/03 17:14:48, ...
8 years, 2 months ago (2012-10-08 15:09:11 UTC) #11
joth
+boliu@chromium.org fyi as he's been hacking the test servera bit recently. lgtm. http://codereview.chromium.org/10946008/diff/15001/chrome/browser/component/navigation_interception/intercept_navigation_delegate.cc File chrome/browser/component/navigation_interception/intercept_navigation_delegate.cc ...
8 years, 2 months ago (2012-10-09 02:13:52 UTC) #12
mkosiba (inactive)
https://codereview.chromium.org/10946008/diff/30030/android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java (right): https://codereview.chromium.org/10946008/diff/30030/android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java#newcode31 android_webview/javatests/src/org/chromium/android_webview/test/AwShouldIgnoreNavigationTest.java:31: * Tests for the WebViewClient.shouldOverrideUrlLoading() method. On 2012/10/09 02:13:53, ...
8 years, 2 months ago (2012-10-09 09:56:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10946008/30032
8 years, 2 months ago (2012-10-09 16:58:20 UTC) #14
commit-bot: I haz the power
Presubmit check for 10946008-30032 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-09 16:58:33 UTC) #15
mkosiba (inactive)
Ben@, I've TBR'd you for chrome/*.gyp changes.
8 years, 2 months ago (2012-10-09 17:08:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10946008/30032
8 years, 2 months ago (2012-10-09 17:08:36 UTC) #17
commit-bot: I haz the power
Presubmit check for 10946008-30032 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-09 17:08:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10946008/34031
8 years, 2 months ago (2012-10-09 17:14:24 UTC) #19
boliu
http://codereview.chromium.org/10946008/diff/34031/android_webview/javatests/src/org/chromium/android_webview/test/util/TestWebServer.java File android_webview/javatests/src/org/chromium/android_webview/test/util/TestWebServer.java (right): http://codereview.chromium.org/10946008/diff/34031/android_webview/javatests/src/org/chromium/android_webview/test/util/TestWebServer.java#newcode327 android_webview/javatests/src/org/chromium/android_webview/test/util/TestWebServer.java:327: } Sorry for not comment earlier, and it's not ...
8 years, 2 months ago (2012-10-09 18:27:39 UTC) #20
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 2 months ago (2012-10-09 18:32:06 UTC) #21
Ben Goodger (Google)
lgtm
8 years, 2 months ago (2012-10-09 21:13:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/10946008/34031
8 years, 2 months ago (2012-10-09 21:16:09 UTC) #23
commit-bot: I haz the power
8 years, 2 months ago (2012-10-09 22:10:49 UTC) #24
Change committed as 160945

Powered by Google App Engine
This is Rietveld 408576698