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

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

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: rebase (just in case since this is so huge) Created 5 years, 9 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/url_request/url_request.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 public: 53 public:
54 URLRequestContext(); 54 URLRequestContext();
55 virtual ~URLRequestContext(); 55 virtual ~URLRequestContext();
56 56
57 // Copies the state from |other| into this context. 57 // Copies the state from |other| into this context.
58 void CopyFrom(const URLRequestContext* other); 58 void CopyFrom(const URLRequestContext* other);
59 59
60 // May return NULL if this context doesn't have an associated network session. 60 // May return NULL if this context doesn't have an associated network session.
61 const HttpNetworkSession::Params* GetNetworkSessionParams() const; 61 const HttpNetworkSession::Params* GetNetworkSessionParams() const;
62 62
63 // Creates a URLRequest. If |cookie_store| is non-NULL, it will be used
64 // instead of the context's cookie store.
65 scoped_ptr<URLRequest> CreateRequest(const GURL& url, 63 scoped_ptr<URLRequest> CreateRequest(const GURL& url,
66 RequestPriority priority, 64 RequestPriority priority,
67 URLRequest::Delegate* delegate, 65 URLRequest::Delegate* delegate) const;
68 CookieStore* cookie_store) const;
69 66
70 NetLog* net_log() const { 67 NetLog* net_log() const {
71 return net_log_; 68 return net_log_;
72 } 69 }
73 70
74 void set_net_log(NetLog* net_log) { 71 void set_net_log(NetLog* net_log) {
75 net_log_ = net_log; 72 net_log_ = net_log;
76 } 73 }
77 74
78 HostResolver* host_resolver() const { 75 HostResolver* host_resolver() const {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // --------------------------------------------------------------------------- 253 // ---------------------------------------------------------------------------
257 254
258 scoped_ptr<std::set<const URLRequest*> > url_requests_; 255 scoped_ptr<std::set<const URLRequest*> > url_requests_;
259 256
260 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 257 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
261 }; 258 };
262 259
263 } // namespace net 260 } // namespace net
264 261
265 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_ 262 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698