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

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

Issue 6930040: Refactor to address URLRequestContext dependency added in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
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
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
186 protected: 183 protected:
187 friend class base::RefCountedThreadSafe<URLRequestContext>; 184 friend class base::RefCountedThreadSafe<URLRequestContext>;
188 185
189 virtual ~URLRequestContext(); 186 virtual ~URLRequestContext();
190 187
191 private: 188 private:
192 // --------------------------------------------------------------------------- 189 // ---------------------------------------------------------------------------
193 // Important: When adding any new members below, consider whether they need to 190 // Important: When adding any new members below, consider whether they need to
194 // be added to CopyFrom. 191 // be added to CopyFrom.
195 // --------------------------------------------------------------------------- 192 // ---------------------------------------------------------------------------
(...skipping 30 matching lines...) Expand all
226 // Important: When adding any new members below, consider whether they need to 223 // Important: When adding any new members below, consider whether they need to
227 // be added to CopyFrom. 224 // be added to CopyFrom.
228 // --------------------------------------------------------------------------- 225 // ---------------------------------------------------------------------------
229 226
230 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 227 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
231 }; 228 };
232 229
233 } // namespace net 230 } // namespace net
234 231
235 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 232 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698