| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_metrics.h" | 5 #include "net/url_request/url_request_job_metrics.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 text->append(L"job url = "); | 25 text->append(L"job url = "); |
| 26 text->append(UTF8ToWide(original_url_->spec())); | 26 text->append(UTF8ToWide(original_url_->spec())); |
| 27 | 27 |
| 28 if (url_.get()) { | 28 if (url_.get()) { |
| 29 text->append(L"; redirected url = "); | 29 text->append(L"; redirected url = "); |
| 30 text->append(UTF8ToWide(url_->spec())); | 30 text->append(UTF8ToWide(url_->spec())); |
| 31 } | 31 } |
| 32 | 32 |
| 33 TimeDelta elapsed = end_time_ - start_time_; | 33 TimeDelta elapsed = end_time_ - start_time_; |
| 34 StringAppendF(text, | 34 base::StringAppendF(text, |
| 35 L"; total bytes read = %ld; read calls = %d; time = %lld ms;", | 35 L"; total bytes read = %ld; read calls = %d; time = %lld ms;", |
| 36 static_cast<long>(total_bytes_read_), | 36 static_cast<long>(total_bytes_read_), |
| 37 number_of_read_IO_, elapsed.InMilliseconds()); | 37 number_of_read_IO_, elapsed.InMilliseconds()); |
| 38 | 38 |
| 39 if (success_) { | 39 if (success_) { |
| 40 text->append(L" success."); | 40 text->append(L" success."); |
| 41 } else { | 41 } else { |
| 42 text->append(L" fail."); | 42 text->append(L" fail."); |
| 43 } | 43 } |
| 44 } | 44 } |
| OLD | NEW |