| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "net/base/filter.h" | 14 #include "net/base/filter.h" |
| 15 #include "net/base/load_states.h" | 15 #include "net/base/load_states.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 class AuthChallengeInfo; | 18 class AuthChallengeInfo; |
| 19 class HttpResponseInfo; | 19 class HttpResponseInfo; |
| 20 class IOBuffer; | 20 class IOBuffer; |
| 21 class UploadData; | 21 class UploadData; |
| 22 class X509Certificate; |
| 22 } | 23 } |
| 23 | 24 |
| 24 class GURL; | 25 class GURL; |
| 25 class URLRequest; | 26 class URLRequest; |
| 26 class URLRequestStatus; | 27 class URLRequestStatus; |
| 27 class URLRequestJobMetrics; | 28 class URLRequestJobMetrics; |
| 28 | 29 |
| 29 // The URLRequestJob is using RefCounterThreadSafe because some sub classes | 30 // The URLRequestJob is using RefCounterThreadSafe because some sub classes |
| 30 // can be destroyed on multiple threads. This is the case of the | 31 // can be destroyed on multiple threads. This is the case of the |
| 31 // UrlRequestFileJob. | 32 // UrlRequestFileJob. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 virtual void GetAuthChallengeInfo( | 170 virtual void GetAuthChallengeInfo( |
| 170 scoped_refptr<net::AuthChallengeInfo>* auth_info); | 171 scoped_refptr<net::AuthChallengeInfo>* auth_info); |
| 171 | 172 |
| 172 // Resend the request with authentication credentials. | 173 // Resend the request with authentication credentials. |
| 173 virtual void SetAuth(const std::wstring& username, | 174 virtual void SetAuth(const std::wstring& username, |
| 174 const std::wstring& password); | 175 const std::wstring& password); |
| 175 | 176 |
| 176 // Display the error page without asking for credentials again. | 177 // Display the error page without asking for credentials again. |
| 177 virtual void CancelAuth(); | 178 virtual void CancelAuth(); |
| 178 | 179 |
| 180 virtual void ContinueWithCertificate(net::X509Certificate* client_cert); |
| 181 |
| 179 // Continue processing the request ignoring the last error. | 182 // Continue processing the request ignoring the last error. |
| 180 virtual void ContinueDespiteLastError(); | 183 virtual void ContinueDespiteLastError(); |
| 181 | 184 |
| 182 // Returns true if the Job is done producing response data and has called | 185 // Returns true if the Job is done producing response data and has called |
| 183 // NotifyDone on the request. | 186 // NotifyDone on the request. |
| 184 bool is_done() const { return done_; } | 187 bool is_done() const { return done_; } |
| 185 | 188 |
| 186 // Returns true if the job is doing performance profiling | 189 // Returns true if the job is doing performance profiling |
| 187 bool is_profiling() const { return is_profiling_; } | 190 bool is_profiling() const { return is_profiling_; } |
| 188 | 191 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 base::Time final_packet_time_; | 387 base::Time final_packet_time_; |
| 385 | 388 |
| 386 // The count of the number of packets, some of which may not have been timed. | 389 // The count of the number of packets, some of which may not have been timed. |
| 387 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes. | 390 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes. |
| 388 int observed_packet_count_; | 391 int observed_packet_count_; |
| 389 | 392 |
| 390 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 393 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 391 }; | 394 }; |
| 392 | 395 |
| 393 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 396 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |