Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_ftp_job.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void CancelAuth() OVERRIDE; 86 virtual void CancelAuth() OVERRIDE;
87 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; 87 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE;
88 virtual void ContinueDespiteLastError() OVERRIDE; 88 virtual void ContinueDespiteLastError() OVERRIDE;
89 virtual bool ReadRawData(IOBuffer* buf, int buf_size, 89 virtual bool ReadRawData(IOBuffer* buf, int buf_size,
90 int* bytes_read) OVERRIDE; 90 int* bytes_read) OVERRIDE;
91 virtual void StopCaching() OVERRIDE; 91 virtual void StopCaching() OVERRIDE;
92 virtual void DoneReading() OVERRIDE; 92 virtual void DoneReading() OVERRIDE;
93 virtual HostPortPair GetSocketAddress() const OVERRIDE; 93 virtual HostPortPair GetSocketAddress() const OVERRIDE;
94 virtual void NotifyURLRequestDestroyed() OVERRIDE; 94 virtual void NotifyURLRequestDestroyed() OVERRIDE;
95 95
96 // Keep a reference to the url request context to be sure it's not deleted
97 // before us.
98 scoped_refptr<const URLRequestContext> context_;
99
100 HttpRequestInfo request_info_; 96 HttpRequestInfo request_info_;
101 const HttpResponseInfo* response_info_; 97 const HttpResponseInfo* response_info_;
102 98
103 std::vector<std::string> response_cookies_; 99 std::vector<std::string> response_cookies_;
104 size_t response_cookies_save_index_; 100 size_t response_cookies_save_index_;
105 101
106 // Auth states for proxy and origin server. 102 // Auth states for proxy and origin server.
107 AuthState proxy_auth_state_; 103 AuthState proxy_auth_state_;
108 AuthState server_auth_state_; 104 AuthState server_auth_state_;
109 AuthCredentials auth_credentials_; 105 AuthCredentials auth_credentials_;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, 227 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet,
232 // to inform the NetworkDelegate that it may not call back. 228 // to inform the NetworkDelegate that it may not call back.
233 bool awaiting_callback_; 229 bool awaiting_callback_;
234 230
235 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 231 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
236 }; 232 };
237 233
238 } // namespace net 234 } // namespace net
239 235
240 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 236 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_ftp_job.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698