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 | 9 |
10 using base::TimeDelta; | 10 using base::TimeDelta; |
(...skipping 14 matching lines...) Expand all Loading... |
25 StringAppendF(text, | 25 StringAppendF(text, |
26 L"; total bytes read = %d; read calls = %d; time = %lld ms;", | 26 L"; total bytes read = %d; read calls = %d; time = %lld ms;", |
27 total_bytes_read_, number_of_read_IO_, elapsed.InMilliseconds()); | 27 total_bytes_read_, number_of_read_IO_, elapsed.InMilliseconds()); |
28 | 28 |
29 if (success_) { | 29 if (success_) { |
30 text->append(L" success."); | 30 text->append(L" success."); |
31 } else { | 31 } else { |
32 text->append(L" fail."); | 32 text->append(L" fail."); |
33 } | 33 } |
34 } | 34 } |
35 | |
OLD | NEW |