Use resource throttle to implement shouldOverrideUrlLoading, core change
commit777bb78a111aee919e07f5206267915a87639f88
authorgsennton <gsennton@chromium.org>
Thu, 16 Jul 2015 20:12:49 +0000 (16 13:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jul 2015 20:13:36 +0000 (16 20:13 +0000)
tree852c8f2cf62748fc0c28926fe6967e74f01b0cbc
parentb839eab3001b70e7489661dfadffd3ecb3386ab5
Use resource throttle to implement shouldOverrideUrlLoading, core change

We have been using both a resource throttle and a sync IPC to implement
shouldOverrideUrlLoading, with this patch we use only a resource
throttle instead.

This patch depends on https://codereview.chromium.org/1194383003 which
adds a flag indicating that the current request was overridden. The flag
is passed down to AwWebContentsObserver.didFailLoad. That CL in turn
depends on https://codereview.chromium.org/1178273007/ which adds the
flag to blink errors.

BUG=325351

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

Cr-Commit-Position: refs/heads/master@{#339109}
15 files changed:
android_webview/browser/aw_content_browser_client.cc
android_webview/browser/aw_contents_client_bridge_base.h
android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
android_webview/common/render_view_messages.h
android_webview/java/src/org/chromium/android_webview/AwContents.java
android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
android_webview/java/src/org/chromium/android_webview/AwWebContentsObserver.java
android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java
android_webview/native/aw_contents_client_bridge.cc
android_webview/native/aw_contents_client_bridge.h
android_webview/renderer/aw_content_renderer_client.cc
android_webview/renderer/aw_content_renderer_client.h
content/public/renderer/content_renderer_client.cc
content/public/renderer/content_renderer_client.h
content/renderer/render_frame_impl.cc