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

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

Issue 197463003: Revert 256579 "Allow the content browser client to specify a spe..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
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;
30 class Filter; 29 class Filter;
31 class HttpRequestHeaders; 30 class HttpRequestHeaders;
32 class HttpResponseInfo; 31 class HttpResponseInfo;
33 class IOBuffer; 32 class IOBuffer;
34 struct LoadTimingInfo; 33 struct LoadTimingInfo;
35 class NetworkDelegate; 34 class NetworkDelegate;
36 class SSLCertRequestInfo; 35 class SSLCertRequestInfo;
37 class SSLInfo; 36 class SSLInfo;
38 class URLRequest; 37 class URLRequest;
39 class UploadDataStream; 38 class UploadDataStream;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Delegates to URLRequest::Delegate. 231 // Delegates to URLRequest::Delegate.
233 bool CanGetCookies(const CookieList& cookie_list) const; 232 bool CanGetCookies(const CookieList& cookie_list) const;
234 233
235 // Delegates to URLRequest::Delegate. 234 // Delegates to URLRequest::Delegate.
236 bool CanSetCookie(const std::string& cookie_line, 235 bool CanSetCookie(const std::string& cookie_line,
237 CookieOptions* options) const; 236 CookieOptions* options) const;
238 237
239 // Delegates to URLRequest::Delegate. 238 // Delegates to URLRequest::Delegate.
240 bool CanEnablePrivacyMode() const; 239 bool CanEnablePrivacyMode() const;
241 240
242 // Returns the cookie store to be used for the request.
243 CookieStore* GetCookieStore() const;
244
245 // Notifies the job that the network is about to be used. 241 // Notifies the job that the network is about to be used.
246 void NotifyBeforeNetworkStart(bool* defer); 242 void NotifyBeforeNetworkStart(bool* defer);
247 243
248 // Notifies the job that headers have been received. 244 // Notifies the job that headers have been received.
249 void NotifyHeadersComplete(); 245 void NotifyHeadersComplete();
250 246
251 // Notifies the request that the job has completed a Read operation. 247 // Notifies the request that the job has completed a Read operation.
252 void NotifyReadComplete(int bytes_read); 248 void NotifyReadComplete(int bytes_read);
253 249
254 // Notifies the request that a start error has occurred. 250 // Notifies the request that a start error has occurred.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 NetworkDelegate* network_delegate_; 407 NetworkDelegate* network_delegate_;
412 408
413 base::WeakPtrFactory<URLRequestJob> weak_factory_; 409 base::WeakPtrFactory<URLRequestJob> weak_factory_;
414 410
415 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 411 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
416 }; 412 };
417 413
418 } // namespace net 414 } // namespace net
419 415
420 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 416 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « trunk/src/net/url_request/url_request_http_job.cc ('k') | trunk/src/net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698