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

Side by Side Diff: sync/api/fake_syncable_service.h

Issue 1002263005: [Sync] Introduce AttachmentStoreForSync class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
« no previous file with comments | « sync/api/attachments/attachment_store_backend.h ('k') | sync/api/fake_syncable_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SYNC_API_FAKE_SYNCABLE_SERVICE_H_ 5 #ifndef SYNC_API_FAKE_SYNCABLE_SERVICE_H_
6 #define SYNC_API_FAKE_SYNCABLE_SERVICE_H_ 6 #define SYNC_API_FAKE_SYNCABLE_SERVICE_H_
7 7
8 #include "sync/api/syncable_service.h" 8 #include "sync/api/syncable_service.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 25 matching lines...) Expand all
36 // SyncableService implementation. 36 // SyncableService implementation.
37 SyncMergeResult MergeDataAndStartSyncing( 37 SyncMergeResult MergeDataAndStartSyncing(
38 ModelType type, 38 ModelType type,
39 const SyncDataList& initial_sync_data, 39 const SyncDataList& initial_sync_data,
40 scoped_ptr<SyncChangeProcessor> sync_processor, 40 scoped_ptr<SyncChangeProcessor> sync_processor,
41 scoped_ptr<SyncErrorFactory> sync_error_factory) override; 41 scoped_ptr<SyncErrorFactory> sync_error_factory) override;
42 void StopSyncing(ModelType type) override; 42 void StopSyncing(ModelType type) override;
43 SyncDataList GetAllSyncData(ModelType type) const override; 43 SyncDataList GetAllSyncData(ModelType type) const override;
44 SyncError ProcessSyncChanges(const tracked_objects::Location& from_here, 44 SyncError ProcessSyncChanges(const tracked_objects::Location& from_here,
45 const SyncChangeList& change_list) override; 45 const SyncChangeList& change_list) override;
46 scoped_ptr<AttachmentStore> GetAttachmentStoreForSync() override; 46 scoped_ptr<AttachmentStoreForSync> GetAttachmentStoreForSync() override;
47 void SetAttachmentService( 47 void SetAttachmentService(
48 scoped_ptr<AttachmentService> attachment_service) override; 48 scoped_ptr<AttachmentService> attachment_service) override;
49 49
50 private: 50 private:
51 scoped_ptr<SyncChangeProcessor> sync_processor_; 51 scoped_ptr<SyncChangeProcessor> sync_processor_;
52 SyncError merge_data_and_start_syncing_error_; 52 SyncError merge_data_and_start_syncing_error_;
53 SyncError process_sync_changes_error_; 53 SyncError process_sync_changes_error_;
54 bool syncing_; 54 bool syncing_;
55 ModelType type_; 55 ModelType type_;
56 scoped_ptr<AttachmentStore> attachment_store_; 56 scoped_ptr<AttachmentStore> attachment_store_;
57 scoped_ptr<AttachmentService> attachment_service_; 57 scoped_ptr<AttachmentService> attachment_service_;
58 }; 58 };
59 59
60 } // namespace syncer 60 } // namespace syncer
61 61
62 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_ 62 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « sync/api/attachments/attachment_store_backend.h ('k') | sync/api/fake_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698