| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_CHANGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_CHANGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_CHANGE_HANDLER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_CHANGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "webkit/fileapi/file_system_url.h" | 16 #include "webkit/common/fileapi/file_system_url.h" |
| 17 #include "webkit/fileapi/syncable/file_change.h" | 17 #include "webkit/fileapi/syncable/file_change.h" |
| 18 | 18 |
| 19 namespace sync_file_system { | 19 namespace sync_file_system { |
| 20 | 20 |
| 21 // Manages pending remote file changes. | 21 // Manages pending remote file changes. |
| 22 class RemoteChangeHandler { | 22 class RemoteChangeHandler { |
| 23 public: | 23 public: |
| 24 enum RemoteSyncType { | 24 enum RemoteSyncType { |
| 25 // Smaller number indicates higher priority in ChangeQueue. | 25 // Smaller number indicates higher priority in ChangeQueue. |
| 26 REMOTE_SYNC_TYPE_FETCH = 0, | 26 REMOTE_SYNC_TYPE_FETCH = 0, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 PendingChangeQueue changes_; | 112 PendingChangeQueue changes_; |
| 113 OriginToChangesMap origin_to_changes_map_; | 113 OriginToChangesMap origin_to_changes_map_; |
| 114 | 114 |
| 115 DISALLOW_COPY_AND_ASSIGN(RemoteChangeHandler); | 115 DISALLOW_COPY_AND_ASSIGN(RemoteChangeHandler); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace sync_file_system | 118 } // namespace sync_file_system |
| 119 | 119 |
| 120 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_CHANGE_HANDLER_H_ | 120 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_CHANGE_HANDLER_H_ |
| OLD | NEW |