summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_http_job.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 04:14:27 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 04:14:27 +0000
commit2aecf73871ce89098c0f2f6dd61d6adfe1f059ee (patch)
treea2a82f7292a7928c64f38601ca64a92b3d6337f9 /net/url_request/url_request_http_job.h
parenta87e9acee988e8136b3ff74a8d5dda7047565308 (diff)
downloadchromium_src-2aecf73871ce89098c0f2f6dd61d6adfe1f059ee.zip
chromium_src-2aecf73871ce89098c0f2f6dd61d6adfe1f059ee.tar.gz
chromium_src-2aecf73871ce89098c0f2f6dd61d6adfe1f059ee.tar.bz2
Reorder members in URLRequestHttpJob to get correct destruction order.
BUG=http://crbug.com/14231 Review URL: http://codereview.chromium.org/126257 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_http_job.h')
-rw-r--r--net/url_request/url_request_http_job.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/url_request/url_request_http_job.h b/net/url_request/url_request_http_job.h
index 46078d4..3ebc05c 100644
--- a/net/url_request/url_request_http_job.h
+++ b/net/url_request/url_request_http_job.h
@@ -79,8 +79,11 @@ class URLRequestHttpJob : public URLRequestJob {
void RestartTransactionWithAuth(const std::wstring& username,
const std::wstring& password);
+ // Keep a reference to the url request context to be sure it's not deleted
+ // before us.
+ scoped_refptr<URLRequestContext> context_;
+
net::HttpRequestInfo request_info_;
- scoped_ptr<net::HttpTransaction> transaction_;
const net::HttpResponseInfo* response_info_;
std::vector<std::string> response_cookies_;
@@ -96,9 +99,7 @@ class URLRequestHttpJob : public URLRequestJob {
// An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header.
GURL sdch_dictionary_url_;
- // Keep a reference to the url request context to be sure it's not deleted
- // before us.
- scoped_refptr<URLRequestContext> context_;
+ scoped_ptr<net::HttpTransaction> transaction_;
// Indicated if an SDCH dictionary was advertised, and hence an SDCH
// compressed response is expected. We use this to help detect (accidental?)