From c0d243a6c23df9983e1ba039bbe760d0cf047ca5 Mon Sep 17 00:00:00 2001 From: "mkosiba@chromium.org" Date: Thu, 31 Jan 2013 21:20:16 +0000 Subject: Use a struct to pass parameters in the navigation interception callback. The number of parameters in the InterceptNavigationResourceThrottle has gone over the maximum size supported by base::Bind. BUG=None TEST=components_unittests,AndroidWebViewTests TBR=joi@chromium.org Review URL: https://chromiumcodereview.appspot.com/12082049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179956 0039d316-1c4b-4281-b951-d872f2087c98 --- .../navigation_interception/intercept_navigation_delegate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components/navigation_interception/intercept_navigation_delegate.h') diff --git a/components/navigation_interception/intercept_navigation_delegate.h b/components/navigation_interception/intercept_navigation_delegate.h index 66a2518..a3d14ce 100644 --- a/components/navigation_interception/intercept_navigation_delegate.h +++ b/components/navigation_interception/intercept_navigation_delegate.h @@ -23,6 +23,8 @@ class URLRequest; namespace components { +class NavigationParams; + // Native side of the InterceptNavigationDelegate Java interface. // This is used to create a InterceptNavigationResourceThrottle that calls the // Java interface method to determine whether a navigation should be ignored or @@ -54,10 +56,8 @@ class InterceptNavigationDelegate : public base::SupportsUserData::Data { static content::ResourceThrottle* CreateThrottleFor( net::URLRequest* request); - virtual bool ShouldIgnoreNavigation(const GURL& url, - bool is_post, - bool has_user_gesture, - content::PageTransition transition_type); + virtual bool ShouldIgnoreNavigation( + const NavigationParams& navigation_params); private: JavaObjectWeakGlobalRef weak_jdelegate_; }; -- cgit v1.1