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

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

Issue 13986011: SyncFS: Introduce RemoteSyncOperationResolver for directory operation support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 7 years, 7 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 | « chrome/chrome_tests_unit.gypi ('k') | no next file » | 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 #ifndef WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_ 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_
6 #define WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_ 6 #define WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ~FileChangeList(); 55 ~FileChangeList();
56 56
57 // Updates the list with the |new_change|. 57 // Updates the list with the |new_change|.
58 void Update(const FileChange& new_change); 58 void Update(const FileChange& new_change);
59 59
60 size_t size() const { return list_.size(); } 60 size_t size() const { return list_.size(); }
61 bool empty() const { return list_.empty(); } 61 bool empty() const { return list_.empty(); }
62 void clear() { list_.clear(); } 62 void clear() { list_.clear(); }
63 const List& list() const { return list_; } 63 const List& list() const { return list_; }
64 const FileChange& front() const { return list_.front(); } 64 const FileChange& front() const { return list_.front(); }
65 const FileChange& back() const { return list_.back(); }
65 66
66 FileChangeList PopAndGetNewList() const; 67 FileChangeList PopAndGetNewList() const;
67 68
68 std::string DebugString() const; 69 std::string DebugString() const;
69 70
70 private: 71 private:
71 List list_; 72 List list_;
72 }; 73 };
73 74
74 } // namespace sync_file_system 75 } // namespace sync_file_system
75 76
76 #endif // WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_ 77 #endif // WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698