Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: webkit/fileapi/syncable/file_change.cc

Issue 12315004: Migrated sync_file_type and file_change from namespace fileapi to sync_file_system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/syncable/file_change.h ('k') | webkit/fileapi/syncable/file_change_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "webkit/fileapi/syncable/file_change.h" 8 #include "webkit/fileapi/syncable/file_change.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 11
12 namespace fileapi { 12 namespace sync_file_system {
13 13
14 FileChange::FileChange( 14 FileChange::FileChange(
15 ChangeType change, 15 ChangeType change,
16 SyncFileType file_type) 16 SyncFileType file_type)
17 : change_(change), 17 : change_(change),
18 file_type_(file_type) {} 18 file_type_(file_type) {}
19 19
20 std::string FileChange::DebugString() const { 20 std::string FileChange::DebugString() const {
21 const char* change_string = NULL; 21 const char* change_string = NULL;
22 switch (change()) { 22 switch (change()) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 std::string FileChangeList::DebugString() const { 81 std::string FileChangeList::DebugString() const {
82 std::ostringstream ss; 82 std::ostringstream ss;
83 ss << "{ "; 83 ss << "{ ";
84 for (size_t i = 0; i < list_.size(); ++i) 84 for (size_t i = 0; i < list_.size(); ++i)
85 ss << list_[i].DebugString() << ", "; 85 ss << list_[i].DebugString() << ", ";
86 ss << "}"; 86 ss << "}";
87 return ss.str(); 87 return ss.str();
88 } 88 }
89 89
90 } // namespace fileapi 90 } // namespace sync_file_system
OLDNEW
« no previous file with comments | « webkit/fileapi/syncable/file_change.h ('k') | webkit/fileapi/syncable/file_change_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698