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

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

Issue 3421039: Revert 60739 (still leaks on ChromiumOS!) - Reland r59972: Eagerly set the IO... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 2 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/ocsp/nss_ocsp.cc ('k') | net/url_request/url_request_context.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // method to provide a UA string. 97 // method to provide a UA string.
98 virtual const std::string& GetUserAgent(const GURL& url) const; 98 virtual const std::string& GetUserAgent(const GURL& url) const;
99 99
100 // In general, referrer_charset is not known when URLRequestContext is 100 // In general, referrer_charset is not known when URLRequestContext is
101 // constructed. So, we need a setter. 101 // constructed. So, we need a setter.
102 const std::string& referrer_charset() const { return referrer_charset_; } 102 const std::string& referrer_charset() const { return referrer_charset_; }
103 void set_referrer_charset(const std::string& charset) { 103 void set_referrer_charset(const std::string& charset) {
104 referrer_charset_ = charset; 104 referrer_charset_ = charset;
105 } 105 }
106 106
107 // Controls whether or not the URLRequestContext considers itself to be the
108 // "main" URLRequestContext.
109 bool is_main() const { return is_main_; }
110 void set_is_main(bool is_main) { is_main_ = is_main; }
111
112 protected: 107 protected:
113 friend class base::RefCountedThreadSafe<URLRequestContext>; 108 friend class base::RefCountedThreadSafe<URLRequestContext>;
114 109
115 virtual ~URLRequestContext(); 110 virtual ~URLRequestContext();
116 111
117 // The following members are expected to be initialized and owned by 112 // The following members are expected to be initialized and owned by
118 // subclasses. 113 // subclasses.
119 net::NetLog* net_log_; 114 net::NetLog* net_log_;
120 scoped_refptr<net::HostResolver> host_resolver_; 115 scoped_refptr<net::HostResolver> host_resolver_;
121 scoped_refptr<net::ProxyService> proxy_service_; 116 scoped_refptr<net::ProxyService> proxy_service_;
122 scoped_refptr<net::SSLConfigService> ssl_config_service_; 117 scoped_refptr<net::SSLConfigService> ssl_config_service_;
123 net::HttpTransactionFactory* http_transaction_factory_; 118 net::HttpTransactionFactory* http_transaction_factory_;
124 net::FtpTransactionFactory* ftp_transaction_factory_; 119 net::FtpTransactionFactory* ftp_transaction_factory_;
125 net::HttpAuthHandlerFactory* http_auth_handler_factory_; 120 net::HttpAuthHandlerFactory* http_auth_handler_factory_;
126 net::HttpNetworkDelegate* network_delegate_; 121 net::HttpNetworkDelegate* network_delegate_;
127 scoped_refptr<net::CookieStore> cookie_store_; 122 scoped_refptr<net::CookieStore> cookie_store_;
128 net::CookiePolicy* cookie_policy_; 123 net::CookiePolicy* cookie_policy_;
129 scoped_refptr<net::TransportSecurityState> transport_security_state_; 124 scoped_refptr<net::TransportSecurityState> transport_security_state_;
130 net::FtpAuthCache ftp_auth_cache_; 125 net::FtpAuthCache ftp_auth_cache_;
131 std::string accept_language_; 126 std::string accept_language_;
132 std::string accept_charset_; 127 std::string accept_charset_;
133 // The charset of the referrer where this request comes from. It's not 128 // The charset of the referrer where this request comes from. It's not
134 // used in communication with a server but is used to construct a suggested 129 // used in communication with a server but is used to construct a suggested
135 // filename for file download. 130 // filename for file download.
136 std::string referrer_charset_; 131 std::string referrer_charset_;
137 132
138 private: 133 private:
139 // Indicates whether or not this is the main URLRequestContext.
140 bool is_main_;
141
142 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 134 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
143 }; 135 };
144 136
145 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 137 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/ocsp/nss_ocsp.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698