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

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

Issue 197023: This CL changes the CookieStore obect to be a refcounted object to get a bett... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This class represents contextual information (cookies, cache, etc.) 5 // This class represents contextual information (cookies, cache, etc.)
6 // that's useful when processing resource requests. 6 // that's useful when processing resource requests.
7 // The class is reference-counted so that it can be cleaned up after any 7 // The class is reference-counted so that it can be cleaned up after any
8 // requests that are using it have been completed. 8 // requests that are using it have been completed.
9 9
10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 10 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 net::HttpTransactionFactory* http_transaction_factory() { 55 net::HttpTransactionFactory* http_transaction_factory() {
56 return http_transaction_factory_; 56 return http_transaction_factory_;
57 } 57 }
58 58
59 // Gets the ftp transaction factory for this context. 59 // Gets the ftp transaction factory for this context.
60 net::FtpTransactionFactory* ftp_transaction_factory() { 60 net::FtpTransactionFactory* ftp_transaction_factory() {
61 return ftp_transaction_factory_; 61 return ftp_transaction_factory_;
62 } 62 }
63 63
64 // Gets the cookie store for this context. 64 // Gets the cookie store for this context.
65 net::CookieStore* cookie_store() { return cookie_store_; } 65 net::CookieStore* cookie_store() { return cookie_store_.get(); }
66 66
67 // Gets the cookie policy for this context. 67 // Gets the cookie policy for this context.
68 net::CookiePolicy* cookie_policy() { return &cookie_policy_; } 68 net::CookiePolicy* cookie_policy() { return &cookie_policy_; }
69 69
70 net::ForceTLSState* force_tls_state() { return force_tls_state_; } 70 net::ForceTLSState* force_tls_state() { return force_tls_state_; }
71 71
72 // Gets the FTP authentication cache for this context. 72 // Gets the FTP authentication cache for this context.
73 net::FtpAuthCache* ftp_auth_cache() { return &ftp_auth_cache_; } 73 net::FtpAuthCache* ftp_auth_cache() { return &ftp_auth_cache_; }
74 74
75 // Gets the value of 'Accept-Charset' header field. 75 // Gets the value of 'Accept-Charset' header field.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 virtual ~URLRequestContext() {} 111 virtual ~URLRequestContext() {}
112 112
113 // The following members are expected to be initialized and owned by 113 // The following members are expected to be initialized and owned by
114 // subclasses. 114 // subclasses.
115 scoped_refptr<net::HostResolver> host_resolver_; 115 scoped_refptr<net::HostResolver> host_resolver_;
116 scoped_refptr<net::ProxyService> proxy_service_; 116 scoped_refptr<net::ProxyService> proxy_service_;
117 scoped_refptr<net::SSLConfigService> ssl_config_service_; 117 scoped_refptr<net::SSLConfigService> ssl_config_service_;
118 net::HttpTransactionFactory* http_transaction_factory_; 118 net::HttpTransactionFactory* http_transaction_factory_;
119 net::FtpTransactionFactory* ftp_transaction_factory_; 119 net::FtpTransactionFactory* ftp_transaction_factory_;
120 net::CookieStore* cookie_store_; 120 scoped_refptr<net::CookieStore> cookie_store_;
121 net::CookiePolicy cookie_policy_; 121 net::CookiePolicy cookie_policy_;
122 net::ForceTLSState* force_tls_state_;; 122 net::ForceTLSState* force_tls_state_;;
123 net::FtpAuthCache ftp_auth_cache_; 123 net::FtpAuthCache ftp_auth_cache_;
124 std::string accept_language_; 124 std::string accept_language_;
125 std::string accept_charset_; 125 std::string accept_charset_;
126 // The charset of the referrer where this request comes from. It's not 126 // The charset of the referrer where this request comes from. It's not
127 // used in communication with a server but is used to construct a suggested 127 // used in communication with a server but is used to construct a suggested
128 // filename for file download. 128 // filename for file download.
129 std::string referrer_charset_; 129 std::string referrer_charset_;
130 130
131 private: 131 private:
132 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 132 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
133 }; 133 };
134 134
135 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 135 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698