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

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

Issue 197043005: original change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix other build error Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.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 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/power_monitor/power_observer.h" 15 #include "base/power_monitor/power_observer.h"
16 #include "net/base/host_port_pair.h" 16 #include "net/base/host_port_pair.h"
17 #include "net/base/load_states.h" 17 #include "net/base/load_states.h"
18 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
19 #include "net/base/request_priority.h" 19 #include "net/base/request_priority.h"
20 #include "net/base/upload_progress.h" 20 #include "net/base/upload_progress.h"
21 #include "net/cookies/canonical_cookie.h" 21 #include "net/cookies/canonical_cookie.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace net { 24 namespace net {
25 25
26 class AuthChallengeInfo; 26 class AuthChallengeInfo;
27 class AuthCredentials; 27 class AuthCredentials;
28 class CookieOptions; 28 class CookieOptions;
29 class CookieStore;
29 class Filter; 30 class Filter;
30 class HttpRequestHeaders; 31 class HttpRequestHeaders;
31 class HttpResponseInfo; 32 class HttpResponseInfo;
32 class IOBuffer; 33 class IOBuffer;
33 struct LoadTimingInfo; 34 struct LoadTimingInfo;
34 class NetworkDelegate; 35 class NetworkDelegate;
35 class SSLCertRequestInfo; 36 class SSLCertRequestInfo;
36 class SSLInfo; 37 class SSLInfo;
37 class URLRequest; 38 class URLRequest;
38 class UploadDataStream; 39 class UploadDataStream;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Delegates to URLRequest::Delegate. 232 // Delegates to URLRequest::Delegate.
232 bool CanGetCookies(const CookieList& cookie_list) const; 233 bool CanGetCookies(const CookieList& cookie_list) const;
233 234
234 // Delegates to URLRequest::Delegate. 235 // Delegates to URLRequest::Delegate.
235 bool CanSetCookie(const std::string& cookie_line, 236 bool CanSetCookie(const std::string& cookie_line,
236 CookieOptions* options) const; 237 CookieOptions* options) const;
237 238
238 // Delegates to URLRequest::Delegate. 239 // Delegates to URLRequest::Delegate.
239 bool CanEnablePrivacyMode() const; 240 bool CanEnablePrivacyMode() const;
240 241
242 // Returns the cookie store to be used for the request.
243 CookieStore* GetCookieStore() const;
244
241 // Notifies the job that the network is about to be used. 245 // Notifies the job that the network is about to be used.
242 void NotifyBeforeNetworkStart(bool* defer); 246 void NotifyBeforeNetworkStart(bool* defer);
243 247
244 // Notifies the job that headers have been received. 248 // Notifies the job that headers have been received.
245 void NotifyHeadersComplete(); 249 void NotifyHeadersComplete();
246 250
247 // Notifies the request that the job has completed a Read operation. 251 // Notifies the request that the job has completed a Read operation.
248 void NotifyReadComplete(int bytes_read); 252 void NotifyReadComplete(int bytes_read);
249 253
250 // Notifies the request that a start error has occurred. 254 // Notifies the request that a start error has occurred.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 NetworkDelegate* network_delegate_; 411 NetworkDelegate* network_delegate_;
408 412
409 base::WeakPtrFactory<URLRequestJob> weak_factory_; 413 base::WeakPtrFactory<URLRequestJob> weak_factory_;
410 414
411 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 415 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
412 }; 416 };
413 417
414 } // namespace net 418 } // namespace net
415 419
416 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 420 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698