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

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

Issue 3391028: Reland r59972: Eagerly set the IO loop used for OCSP. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address wtc comments. 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
« 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
107 protected: 112 protected:
108 friend class base::RefCountedThreadSafe<URLRequestContext>; 113 friend class base::RefCountedThreadSafe<URLRequestContext>;
109 114
110 virtual ~URLRequestContext(); 115 virtual ~URLRequestContext();
111 116
112 // The following members are expected to be initialized and owned by 117 // The following members are expected to be initialized and owned by
113 // subclasses. 118 // subclasses.
114 net::NetLog* net_log_; 119 net::NetLog* net_log_;
115 scoped_refptr<net::HostResolver> host_resolver_; 120 scoped_refptr<net::HostResolver> host_resolver_;
116 scoped_refptr<net::ProxyService> proxy_service_; 121 scoped_refptr<net::ProxyService> proxy_service_;
117 scoped_refptr<net::SSLConfigService> ssl_config_service_; 122 scoped_refptr<net::SSLConfigService> ssl_config_service_;
118 net::HttpTransactionFactory* http_transaction_factory_; 123 net::HttpTransactionFactory* http_transaction_factory_;
119 net::FtpTransactionFactory* ftp_transaction_factory_; 124 net::FtpTransactionFactory* ftp_transaction_factory_;
120 net::HttpAuthHandlerFactory* http_auth_handler_factory_; 125 net::HttpAuthHandlerFactory* http_auth_handler_factory_;
121 net::HttpNetworkDelegate* network_delegate_; 126 net::HttpNetworkDelegate* network_delegate_;
122 scoped_refptr<net::CookieStore> cookie_store_; 127 scoped_refptr<net::CookieStore> cookie_store_;
123 net::CookiePolicy* cookie_policy_; 128 net::CookiePolicy* cookie_policy_;
124 scoped_refptr<net::TransportSecurityState> transport_security_state_; 129 scoped_refptr<net::TransportSecurityState> transport_security_state_;
125 net::FtpAuthCache ftp_auth_cache_; 130 net::FtpAuthCache ftp_auth_cache_;
126 std::string accept_language_; 131 std::string accept_language_;
127 std::string accept_charset_; 132 std::string accept_charset_;
128 // The charset of the referrer where this request comes from. It's not 133 // The charset of the referrer where this request comes from. It's not
129 // used in communication with a server but is used to construct a suggested 134 // used in communication with a server but is used to construct a suggested
130 // filename for file download. 135 // filename for file download.
131 std::string referrer_charset_; 136 std::string referrer_charset_;
132 137
133 private: 138 private:
139 // Indicates whether or not this is the main URLRequestContext.
140 bool is_main_;
141
134 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 142 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
135 }; 143 };
136 144
137 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 145 #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