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/download_id.h" | 5 #include "content/browser/download/download_id.h" |
6 | 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/stringprintf.h" |
| 10 |
| 11 std::string DownloadId::DebugString() const { |
| 12 return base::StringPrintf("%p:%d", domain_, local_id_); |
| 13 } |
| 14 |
7 std::ostream& operator<<(std::ostream& out, const DownloadId& global_id) { | 15 std::ostream& operator<<(std::ostream& out, const DownloadId& global_id) { |
8 return out << global_id.manager_ << ":" << global_id.local(); | 16 return out << global_id.DebugString(); |
9 } | 17 } |
OLD | NEW |