OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/download/base_file.h" | 5 #include "content/browser/download/base_file.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 426 |
427 std::string BaseFile::DebugString() const { | 427 std::string BaseFile::DebugString() const { |
428 return base::StringPrintf("{ source_url_ = \"%s\"" | 428 return base::StringPrintf("{ source_url_ = \"%s\"" |
429 " full_path_ = \"%" PRFilePath "\"" | 429 " full_path_ = \"%" PRFilePath "\"" |
430 " bytes_so_far_ = %" PRId64 " detached_ = %c }", | 430 " bytes_so_far_ = %" PRId64 " detached_ = %c }", |
431 source_url_.spec().c_str(), | 431 source_url_.spec().c_str(), |
432 full_path_.value().c_str(), | 432 full_path_.value().c_str(), |
433 bytes_so_far_, | 433 bytes_so_far_, |
434 detached_ ? 'T' : 'F'); | 434 detached_ ? 'T' : 'F'); |
435 } | 435 } |
OLD | NEW |