summaryrefslogtreecommitdiffstats
path: root/components/navigation_interception/intercept_navigation_delegate.h
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-31 21:20:16 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-31 21:20:16 +0000
commitc0d243a6c23df9983e1ba039bbe760d0cf047ca5 (patch)
treef3bbe0a34e3c59f9834a6aba3da4140d2c267e94 /components/navigation_interception/intercept_navigation_delegate.h
parent87eca1838758e781bd4359a8d675bc316b8ee366 (diff)
downloadchromium_src-c0d243a6c23df9983e1ba039bbe760d0cf047ca5.zip
chromium_src-c0d243a6c23df9983e1ba039bbe760d0cf047ca5.tar.gz
chromium_src-c0d243a6c23df9983e1ba039bbe760d0cf047ca5.tar.bz2
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
Diffstat (limited to 'components/navigation_interception/intercept_navigation_delegate.h')
-rw-r--r--components/navigation_interception/intercept_navigation_delegate.h8
1 files changed, 4 insertions, 4 deletions
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_;
};