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 CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void reset_conflict_files() { | 61 void reset_conflict_files() { |
62 conflict_file_urls_.clear(); | 62 conflict_file_urls_.clear(); |
63 conflict_file_metadata_.clear(); | 63 conflict_file_metadata_.clear(); |
64 } | 64 } |
65 | 65 |
66 private: | 66 private: |
67 typedef std::map<GURL, fileapi::FileSystemURLSet> OriginToURLSetMap; | 67 typedef std::map<GURL, fileapi::FileSystemURLSet> OriginToURLSetMap; |
68 typedef std::map<fileapi::FileSystemURL, fileapi::SyncFileMetadata, | 68 typedef std::map<fileapi::FileSystemURL, fileapi::SyncFileMetadata, |
69 fileapi::FileSystemURL::Comparator> FileMetadataMap; | 69 fileapi::FileSystemURL::Comparator> FileMetadataMap; |
70 | 70 |
| 71 void RegisterOriginForTrackingChangesStub( |
| 72 const GURL& origin, |
| 73 const fileapi::SyncStatusCallback& callback); |
| 74 void UnregisterOriginForTrackingChangesStub( |
| 75 const GURL& origin, |
| 76 const fileapi::SyncStatusCallback& callback); |
71 void ProcessRemoteChangeStub( | 77 void ProcessRemoteChangeStub( |
72 RemoteChangeProcessor* processor, | 78 RemoteChangeProcessor* processor, |
73 const fileapi::SyncFileCallback& callback); | 79 const fileapi::SyncFileCallback& callback); |
74 void GetConflictFilesStub( | 80 void GetConflictFilesStub( |
75 const GURL& origin, | 81 const GURL& origin, |
76 const fileapi::SyncFileSetCallback& callback); | 82 const fileapi::SyncFileSetCallback& callback); |
77 void GetRemoteFileMetadataStub( | 83 void GetRemoteFileMetadataStub( |
78 const fileapi::FileSystemURL& url, | 84 const fileapi::FileSystemURL& url, |
79 const fileapi::SyncFileMetadataCallback& callback); | 85 const fileapi::SyncFileMetadataCallback& callback); |
80 | 86 |
81 scoped_ptr<LocalChangeProcessor> local_change_processor_; | 87 scoped_ptr<LocalChangeProcessor> local_change_processor_; |
82 | 88 |
83 OriginToURLSetMap conflict_file_urls_; | 89 OriginToURLSetMap conflict_file_urls_; |
84 FileMetadataMap conflict_file_metadata_; | 90 FileMetadataMap conflict_file_metadata_; |
85 | 91 |
86 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); | 92 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); |
87 }; | 93 }; |
88 | 94 |
89 } // namespace sync_file_system | 95 } // namespace sync_file_system |
90 | 96 |
91 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ | 97 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |