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

Side by Side Diff: chrome/browser/sync_file_system/remote_change_handler.h

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
OLDNEW
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/browser/fileapi/file_system_url.h" 16 #include "webkit/browser/fileapi/file_system_url.h"
17 #include "webkit/fileapi/syncable/file_change.h" 17 #include "webkit/browser/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,
27 REMOTE_SYNC_TYPE_INCREMENTAL = 1, 27 REMOTE_SYNC_TYPE_INCREMENTAL = 1,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698