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 #include "net/url_request/url_request_job.h" | 5 #include "net/url_request/url_request_job.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 #include "net/base/auth.h" | 10 #include "net/base/auth.h" |
11 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // case the derived class should implement this! | 83 // case the derived class should implement this! |
84 NOTREACHED(); | 84 NOTREACHED(); |
85 } | 85 } |
86 | 86 |
87 void URLRequestJob::CancelAuth() { | 87 void URLRequestJob::CancelAuth() { |
88 // This will only be called if NeedsAuth() returns true, in which | 88 // This will only be called if NeedsAuth() returns true, in which |
89 // case the derived class should implement this! | 89 // case the derived class should implement this! |
90 NOTREACHED(); | 90 NOTREACHED(); |
91 } | 91 } |
92 | 92 |
| 93 void URLRequestJob::ContinueWithCertificate( |
| 94 net::X509Certificate* client_cert) { |
| 95 // The derived class should implement this! |
| 96 NOTREACHED(); |
| 97 } |
| 98 |
93 void URLRequestJob::ContinueDespiteLastError() { | 99 void URLRequestJob::ContinueDespiteLastError() { |
94 // Implementations should know how to recover from errors they generate. | 100 // Implementations should know how to recover from errors they generate. |
95 // If this code was reached, we are trying to recover from an error that | 101 // If this code was reached, we are trying to recover from an error that |
96 // we don't know how to recover from. | 102 // we don't know how to recover from. |
97 NOTREACHED(); | 103 NOTREACHED(); |
98 } | 104 } |
99 | 105 |
100 int64 URLRequestJob::GetByteReadCount() const { | 106 int64 URLRequestJob::GetByteReadCount() const { |
101 return filter_input_byte_count_; | 107 return filter_input_byte_count_; |
102 } | 108 } |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 packet_times_[4] - packet_times_[3], | 703 packet_times_[4] - packet_times_[3], |
698 base::TimeDelta::FromMilliseconds(1), | 704 base::TimeDelta::FromMilliseconds(1), |
699 base::TimeDelta::FromSeconds(10), 100); | 705 base::TimeDelta::FromSeconds(10), 100); |
700 return; | 706 return; |
701 } | 707 } |
702 default: | 708 default: |
703 NOTREACHED(); | 709 NOTREACHED(); |
704 return; | 710 return; |
705 } | 711 } |
706 } | 712 } |
OLD | NEW |