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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/fake_sync_worker.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 namespace base { 22 namespace base {
23 class FilePath; 23 class FilePath;
24 class ListValue; 24 class ListValue;
25 } 25 }
26 26
27 namespace drive { 27 namespace drive {
28 class DriveServiceInterface; 28 class DriveServiceInterface;
29 class DriveUploaderInterface; 29 class DriveUploaderInterface;
30 } 30 }
31 31
32 namespace fileapi { 32 namespace storage {
33 class FileSystemURL; 33 class FileSystemURL;
34 } 34 }
35 35
36 namespace sync_file_system { 36 namespace sync_file_system {
37 37
38 class FileChange; 38 class FileChange;
39 class SyncFileMetadata; 39 class SyncFileMetadata;
40 40
41 namespace drive_backend { 41 namespace drive_backend {
42 42
(...skipping 24 matching lines...) Expand all
67 virtual void SetRemoteChangeProcessor( 67 virtual void SetRemoteChangeProcessor(
68 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) 68 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker)
69 OVERRIDE; 69 OVERRIDE;
70 virtual RemoteServiceState GetCurrentState() const OVERRIDE; 70 virtual RemoteServiceState GetCurrentState() const OVERRIDE;
71 virtual void GetOriginStatusMap( 71 virtual void GetOriginStatusMap(
72 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE; 72 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE;
73 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; 73 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE;
74 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; 74 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE;
75 virtual void SetSyncEnabled(bool enabled) OVERRIDE; 75 virtual void SetSyncEnabled(bool enabled) OVERRIDE;
76 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE; 76 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE;
77 virtual void ApplyLocalChange( 77 virtual void ApplyLocalChange(const FileChange& local_change,
78 const FileChange& local_change, 78 const base::FilePath& local_path,
79 const base::FilePath& local_path, 79 const SyncFileMetadata& local_metadata,
80 const SyncFileMetadata& local_metadata, 80 const storage::FileSystemURL& url,
81 const fileapi::FileSystemURL& url, 81 const SyncStatusCallback& callback) OVERRIDE;
82 const SyncStatusCallback& callback) OVERRIDE;
83 virtual void ActivateService(RemoteServiceState service_state, 82 virtual void ActivateService(RemoteServiceState service_state,
84 const std::string& description) OVERRIDE; 83 const std::string& description) OVERRIDE;
85 virtual void DeactivateService(const std::string& description) OVERRIDE; 84 virtual void DeactivateService(const std::string& description) OVERRIDE;
86 virtual void DetachFromSequence() OVERRIDE; 85 virtual void DetachFromSequence() OVERRIDE;
87 virtual void AddObserver(Observer* observer) OVERRIDE; 86 virtual void AddObserver(Observer* observer) OVERRIDE;
88 87
89 private: 88 private:
90 friend class SyncEngineTest; 89 friend class SyncEngineTest;
91 90
92 enum AppStatus { 91 enum AppStatus {
(...skipping 15 matching lines...) Expand all
108 ObserverList<Observer> observers_; 107 ObserverList<Observer> observers_;
109 base::SequenceChecker sequence_checker_; 108 base::SequenceChecker sequence_checker_;
110 109
111 DISALLOW_COPY_AND_ASSIGN(FakeSyncWorker); 110 DISALLOW_COPY_AND_ASSIGN(FakeSyncWorker);
112 }; 111 };
113 112
114 } // namespace drive_backend 113 } // namespace drive_backend
115 } // namespace sync_file_system 114 } // namespace sync_file_system
116 115
117 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ 116 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698