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
[email protected]


Review URL: https://chromiumcodereview.appspot.com/12082049

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179956 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/components/navigation_interception/intercept_navigation_delegate.h b/components/navigation_interception/intercept_navigation_delegate.h
index 66a2518..a3d14ce1 100644
--- a/components/navigation_interception/intercept_navigation_delegate.h
+++ b/components/navigation_interception/intercept_navigation_delegate.h
@@ -23,6 +23,8 @@
 
 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 @@
   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_;
 };