OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const std::string& referrer_charset() const { return referrer_charset_; } | 173 const std::string& referrer_charset() const { return referrer_charset_; } |
174 void set_referrer_charset(const std::string& charset) { | 174 void set_referrer_charset(const std::string& charset) { |
175 referrer_charset_ = charset; | 175 referrer_charset_ = charset; |
176 } | 176 } |
177 | 177 |
178 // Controls whether or not the URLRequestContext considers itself to be the | 178 // Controls whether or not the URLRequestContext considers itself to be the |
179 // "main" URLRequestContext. | 179 // "main" URLRequestContext. |
180 bool is_main() const { return is_main_; } | 180 bool is_main() const { return is_main_; } |
181 void set_is_main(bool is_main) { is_main_ = is_main; } | 181 void set_is_main(bool is_main) { is_main_ = is_main; } |
182 | 182 |
| 183 // Is SNI available in this request context? |
| 184 bool IsSNIAvailable() const; |
| 185 |
183 protected: | 186 protected: |
184 friend class base::RefCountedThreadSafe<URLRequestContext>; | 187 friend class base::RefCountedThreadSafe<URLRequestContext>; |
185 | 188 |
186 virtual ~URLRequestContext(); | 189 virtual ~URLRequestContext(); |
187 | 190 |
188 private: | 191 private: |
189 // --------------------------------------------------------------------------- | 192 // --------------------------------------------------------------------------- |
190 // Important: When adding any new members below, consider whether they need to | 193 // Important: When adding any new members below, consider whether they need to |
191 // be added to CopyFrom. | 194 // be added to CopyFrom. |
192 // --------------------------------------------------------------------------- | 195 // --------------------------------------------------------------------------- |
(...skipping 30 matching lines...) Expand all Loading... |
223 // Important: When adding any new members below, consider whether they need to | 226 // Important: When adding any new members below, consider whether they need to |
224 // be added to CopyFrom. | 227 // be added to CopyFrom. |
225 // --------------------------------------------------------------------------- | 228 // --------------------------------------------------------------------------- |
226 | 229 |
227 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); | 230 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); |
228 }; | 231 }; |
229 | 232 |
230 } // namespace net | 233 } // namespace net |
231 | 234 |
232 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ | 235 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ |
OLD | NEW |