diff options
author | sgurun@chromium.org <sgurun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 04:33:53 +0000 |
---|---|---|
committer | sgurun@chromium.org <sgurun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 04:33:53 +0000 |
commit | 0b85508d33820fd3c5fb22adb1eaa9bd9187ad8d (patch) | |
tree | cb0a8e231505b6259df59b884d936b2b604da4b2 /android_webview/native/aw_web_contents_delegate.cc | |
parent | 351e65297841b29b4a035ade9790150f11d4c781 (diff) | |
download | chromium_src-0b85508d33820fd3c5fb22adb1eaa9bd9187ad8d.zip chromium_src-0b85508d33820fd3c5fb22adb1eaa9bd9187ad8d.tar.gz chromium_src-0b85508d33820fd3c5fb22adb1eaa9bd9187ad8d.tar.bz2 |
Rather than using a throttle, we are now using
HandleNavigation callback for implementing ShouldOverrideUrlLoading for compatibility with old Webview.
BUG=308257
Review URL: https://codereview.chromium.org/24228003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/native/aw_web_contents_delegate.cc')
-rw-r--r-- | android_webview/native/aw_web_contents_delegate.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc index b759c44..39bb1b0 100644 --- a/android_webview/native/aw_web_contents_delegate.cc +++ b/android_webview/native/aw_web_contents_delegate.cc @@ -7,6 +7,7 @@ #include "android_webview/browser/aw_javascript_dialog_manager.h" #include "android_webview/browser/find_helper.h" #include "android_webview/native/aw_contents.h" +#include "android_webview/native/aw_contents_io_thread_client_impl.h" #include "base/android/jni_array.h" #include "base/android/jni_string.h" #include "base/android/scoped_java_ref.h" @@ -158,6 +159,17 @@ void AwWebContentsDelegate::AddNewContents(WebContents* source, } } +// Notifies the delegate about the creation of a new WebContents. This +// typically happens when popups are created. +void AwWebContentsDelegate::WebContentsCreated( + WebContents* source_contents, + int64 source_frame_id, + const string16& frame_name, + const GURL& target_url, + content::WebContents* new_contents) { + AwContentsIoThreadClientImpl::RegisterPendingContents(new_contents); +} + void AwWebContentsDelegate::CloseContents(WebContents* source) { JNIEnv* env = AttachCurrentThread(); |