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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 (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 CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_CHANGE_PROCESSOR_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/sync_file_system/sync_callbacks.h" 9 #include "chrome/browser/sync_file_system/sync_callbacks.h"
10 10
11 namespace fileapi { 11 namespace storage {
12 class FileSystemURL; 12 class FileSystemURL;
13 } 13 }
14 14
15 namespace sync_file_system { 15 namespace sync_file_system {
16 16
17 class FileChange; 17 class FileChange;
18 18
19 // Represents an interface to process one local change and applies 19 // Represents an interface to process one local change and applies
20 // it to the remote server. 20 // it to the remote server.
21 // This interface is to be implemented/backed by RemoteSyncFileService. 21 // This interface is to be implemented/backed by RemoteSyncFileService.
22 class LocalChangeProcessor { 22 class LocalChangeProcessor {
23 public: 23 public:
24 LocalChangeProcessor() {} 24 LocalChangeProcessor() {}
25 virtual ~LocalChangeProcessor() {} 25 virtual ~LocalChangeProcessor() {}
26 26
27 // This is called to apply the local |change|. If the change type is 27 // This is called to apply the local |change|. If the change type is
28 // ADD_OR_UPDATE for a file, |local_file_path| points to a local file 28 // ADD_OR_UPDATE for a file, |local_file_path| points to a local file
29 // path that contains the latest file image whose file metadata is 29 // path that contains the latest file image whose file metadata is
30 // |local_file_metadata|. 30 // |local_file_metadata|.
31 // When SYNC_STATUS_HAS_CONFLICT is returned the implementation should 31 // When SYNC_STATUS_HAS_CONFLICT is returned the implementation should
32 // notify the backing RemoteFileSyncService of the existence of conflict 32 // notify the backing RemoteFileSyncService of the existence of conflict
33 // (as the remote service is supposed to maintain a list of conflict files). 33 // (as the remote service is supposed to maintain a list of conflict files).
34 virtual void ApplyLocalChange( 34 virtual void ApplyLocalChange(const FileChange& change,
35 const FileChange& change, 35 const base::FilePath& local_file_path,
36 const base::FilePath& local_file_path, 36 const SyncFileMetadata& local_file_metadata,
37 const SyncFileMetadata& local_file_metadata, 37 const storage::FileSystemURL& url,
38 const fileapi::FileSystemURL& url, 38 const SyncStatusCallback& callback) = 0;
39 const SyncStatusCallback& callback) = 0;
40 39
41 private: 40 private:
42 DISALLOW_COPY_AND_ASSIGN(LocalChangeProcessor); 41 DISALLOW_COPY_AND_ASSIGN(LocalChangeProcessor);
43 }; 42 };
44 43
45 } // namespace sync_file_system 44 } // namespace sync_file_system
46 45
47 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_CHANGE_PROCESSOR_H_ 46 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_CHANGE_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698