diff options
author | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-17 13:54:33 +0000 |
---|---|---|
committer | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-17 13:54:33 +0000 |
commit | 4d34d280098220c43f219315a6cd0995f227c5f0 (patch) | |
tree | af3defcde6d802862dc4aa376d59fba0eb812e83 /components/navigation_interception/intercept_navigation_resource_throttle.h | |
parent | 14b7ca55d14ee037992cd285b516419593bc3fbc (diff) | |
download | chromium_src-4d34d280098220c43f219315a6cd0995f227c5f0.zip chromium_src-4d34d280098220c43f219315a6cd0995f227c5f0.tar.gz chromium_src-4d34d280098220c43f219315a6cd0995f227c5f0.tar.bz2 |
Expose the method used for the next URLRequest redirect.
This makes it possible for URLRequest client code to determine
the method that will be used to resolve the next step in the redirect
chain.
This is to fix android_webview not doing navigation intercepting
if the result of a POST resulted in a 302 redirect.
BUG=b/9773847
TEST=AndroidWebViewTest, net_unittests
Review URL: https://chromiumcodereview.appspot.com/18429010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/navigation_interception/intercept_navigation_resource_throttle.h')
-rw-r--r-- | components/navigation_interception/intercept_navigation_resource_throttle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/navigation_interception/intercept_navigation_resource_throttle.h b/components/navigation_interception/intercept_navigation_resource_throttle.h index 012cd568..79ed57e 100644 --- a/components/navigation_interception/intercept_navigation_resource_throttle.h +++ b/components/navigation_interception/intercept_navigation_resource_throttle.h @@ -44,7 +44,10 @@ class InterceptNavigationResourceThrottle : public content::ResourceThrottle { virtual void WillRedirectRequest(const GURL& new_url, bool* defer) OVERRIDE; private: - bool CheckIfShouldIgnoreNavigation(const GURL& url, bool is_redirect); + std::string GetMethodAfterRedirect(); + bool CheckIfShouldIgnoreNavigation(const GURL& url, + const std::string& method, + bool is_redirect); void OnResultObtained(bool should_ignore_navigation); net::URLRequest* request_; |