| 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 #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 Loading... |
| 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_ |
| OLD | NEW |