OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <sstream> | 5 #include <sstream> |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
8 #include "webkit/fileapi/syncable/file_change.h" | 9 #include "webkit/browser/fileapi/syncable/file_change.h" |
9 | |
10 #include "base/logging.h" | |
11 | 10 |
12 namespace sync_file_system { | 11 namespace sync_file_system { |
13 | 12 |
14 FileChange::FileChange( | 13 FileChange::FileChange( |
15 ChangeType change, | 14 ChangeType change, |
16 SyncFileType file_type) | 15 SyncFileType file_type) |
17 : change_(change), | 16 : change_(change), |
18 file_type_(file_type) {} | 17 file_type_(file_type) {} |
19 | 18 |
20 std::string FileChange::DebugString() const { | 19 std::string FileChange::DebugString() const { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 std::string FileChangeList::DebugString() const { | 80 std::string FileChangeList::DebugString() const { |
82 std::ostringstream ss; | 81 std::ostringstream ss; |
83 ss << "{ "; | 82 ss << "{ "; |
84 for (size_t i = 0; i < list_.size(); ++i) | 83 for (size_t i = 0; i < list_.size(); ++i) |
85 ss << list_[i].DebugString() << ", "; | 84 ss << list_[i].DebugString() << ", "; |
86 ss << "}"; | 85 ss << "}"; |
87 return ss.str(); | 86 return ss.str(); |
88 } | 87 } |
89 | 88 |
90 } // namespace sync_file_system | 89 } // namespace sync_file_system |
OLD | NEW |