summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 23:16:41 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 23:16:41 +0000
commita785dab62712680006d9152b584a280ef0b97fcd (patch)
treeefd5d85ade098e06081cd7b2851ccd8cb414ac69 /net/url_request/url_request.h
parentf6fd8fad1d94293c156b144edd6c5e13bd200b3c (diff)
downloadchromium_src-a785dab62712680006d9152b584a280ef0b97fcd.zip
chromium_src-a785dab62712680006d9152b584a280ef0b97fcd.tar.gz
chromium_src-a785dab62712680006d9152b584a280ef0b97fcd.tar.bz2
Revert "Allow extensions to redirect requests in onBeforeRequest."
The change introduced a regression in the WebRequestEvents api test. TBR=mpcomplete git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r--net/url_request/url_request.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index b25b842..40f7d8a 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -584,15 +584,6 @@ class URLRequest : public base::NonThreadSafe {
friend class URLRequestJob;
typedef std::map<const void*, linked_ptr<UserData> > UserDataMap;
- void StartInternal();
-
- // Resumes or blocks a request paused by the NetworkDelegate::OnBeforeRequest
- // handler. If |blocked| is true, the request is blocked and an error page is
- // returned indicating so. This should only be called after Start is called
- // and OnBeforeRequest returns true (signalling that the request should be
- // paused).
- void BeforeRequestComplete(int error);
-
void StartJob(URLRequestJob* job);
// Restarting involves replacing the current job with a new one such as what
@@ -609,6 +600,13 @@ class URLRequest : public base::NonThreadSafe {
// passed values.
void DoCancel(int os_error, const SSLInfo& ssl_info);
+ // Resumes or blocks a request paused by the NetworkDelegate::OnBeforeRequest
+ // handler. If |blocked| is true, the request is blocked and an error page is
+ // returned indicating so. This should only be called after Start is called
+ // and OnBeforeRequest returns true (signalling that the request should be
+ // paused).
+ void BeforeRequestComplete(int error);
+
// Contextual information used for this request (can be NULL). This contains
// most of the dependencies which are shared between requests (disk cache,
// cookie store, socket pool, etc.)
@@ -622,7 +620,6 @@ class URLRequest : public base::NonThreadSafe {
GURL url_;
GURL original_url_;
GURL first_party_for_cookies_;
- GURL delegate_redirect_url_;
std::string method_; // "GET", "POST", etc. Should be all uppercase.
std::string referrer_;
HttpRequestHeaders extra_request_headers_;
@@ -666,7 +663,8 @@ class URLRequest : public base::NonThreadSafe {
// Callback passed to the network delegate to notify us when a blocked request
// is ready to be resumed or canceled.
- CompletionCallbackImpl<URLRequest> before_request_callback_;
+ scoped_refptr< CancelableCompletionCallback<URLRequest> >
+ before_request_callback_;
DISALLOW_COPY_AND_ASSIGN(URLRequest);
};