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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "webkit/fileapi/file_system_url.h" | 13 #include "webkit/fileapi/file_system_url.h" |
14 #include "webkit/fileapi/syncable/sync_file_type.h" | 14 #include "webkit/fileapi/syncable/sync_file_type.h" |
15 #include "webkit/storage/webkit_storage_export.h" | 15 #include "webkit/storage/webkit_storage_export.h" |
16 | 16 |
17 namespace fileapi { | 17 namespace sync_file_system { |
18 | 18 |
19 class WEBKIT_STORAGE_EXPORT FileChange { | 19 class WEBKIT_STORAGE_EXPORT FileChange { |
20 public: | 20 public: |
21 enum ChangeType { | 21 enum ChangeType { |
22 FILE_CHANGE_ADD_OR_UPDATE, | 22 FILE_CHANGE_ADD_OR_UPDATE, |
23 FILE_CHANGE_DELETE, | 23 FILE_CHANGE_DELETE, |
24 }; | 24 }; |
25 | 25 |
26 FileChange(ChangeType change, SyncFileType file_type); | 26 FileChange(ChangeType change, SyncFileType file_type); |
27 | 27 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const FileChange& front() const { return list_.front(); } | 64 const FileChange& front() const { return list_.front(); } |
65 | 65 |
66 FileChangeList PopAndGetNewList() const; | 66 FileChangeList PopAndGetNewList() const; |
67 | 67 |
68 std::string DebugString() const; | 68 std::string DebugString() const; |
69 | 69 |
70 private: | 70 private: |
71 List list_; | 71 List list_; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace fileapi | 74 } // namespace sync_file_system |
75 | 75 |
76 #endif // WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_ | 76 #endif // WEBKIT_FILEAPI_SYNCABLE_FILE_CHANGE_H_ |
OLD | NEW |