| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // case the derived class should implement this! | 183 // case the derived class should implement this! |
| 184 NOTREACHED(); | 184 NOTREACHED(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void URLRequestJob::ContinueWithCertificate( | 187 void URLRequestJob::ContinueWithCertificate( |
| 188 net::X509Certificate* client_cert) { | 188 net::X509Certificate* client_cert) { |
| 189 // The derived class should implement this! | 189 // The derived class should implement this! |
| 190 NOTREACHED(); | 190 NOTREACHED(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void URLRequestJob::ContinueWithTLSLogin() { |
| 194 NOTREACHED(); |
| 195 } |
| 196 |
| 197 void URLRequestJob::CancelTLSLogin() { |
| 198 // The derived class should implement this! |
| 199 NOTREACHED(); |
| 200 } |
| 201 |
| 193 void URLRequestJob::ContinueDespiteLastError() { | 202 void URLRequestJob::ContinueDespiteLastError() { |
| 194 // Implementations should know how to recover from errors they generate. | 203 // Implementations should know how to recover from errors they generate. |
| 195 // If this code was reached, we are trying to recover from an error that | 204 // If this code was reached, we are trying to recover from an error that |
| 196 // we don't know how to recover from. | 205 // we don't know how to recover from. |
| 197 NOTREACHED(); | 206 NOTREACHED(); |
| 198 } | 207 } |
| 199 | 208 |
| 200 void URLRequestJob::FollowDeferredRedirect() { | 209 void URLRequestJob::FollowDeferredRedirect() { |
| 201 DCHECK(deferred_redirect_status_code_ != -1); | 210 DCHECK(deferred_redirect_status_code_ != -1); |
| 202 | 211 |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 | 936 |
| 928 if (is_compressed_) { | 937 if (is_compressed_) { |
| 929 COMPRESSION_HISTOGRAM("NoProxy.BytesBeforeCompression", compressed_B); | 938 COMPRESSION_HISTOGRAM("NoProxy.BytesBeforeCompression", compressed_B); |
| 930 COMPRESSION_HISTOGRAM("NoProxy.BytesAfterCompression", decompressed_B); | 939 COMPRESSION_HISTOGRAM("NoProxy.BytesAfterCompression", decompressed_B); |
| 931 } else { | 940 } else { |
| 932 COMPRESSION_HISTOGRAM("NoProxy.ShouldHaveBeenCompressed", decompressed_B); | 941 COMPRESSION_HISTOGRAM("NoProxy.ShouldHaveBeenCompressed", decompressed_B); |
| 933 } | 942 } |
| 934 } | 943 } |
| 935 | 944 |
| 936 } // namespace net | 945 } // namespace net |
| OLD | NEW |