Chromium Code Reviews| 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 COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ | 6 #define COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "components/sync/model/syncable_service.h" | 10 #include "components/sync/model/syncable_service.h" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 ~FakeSyncableService() override; | 21 ~FakeSyncableService() override; |
| 22 | 22 |
| 23 // Setters for SyncableService implementation results. | 23 // Setters for SyncableService implementation results. |
| 24 void set_merge_data_and_start_syncing_error(const SyncError& error); | 24 void set_merge_data_and_start_syncing_error(const SyncError& error); |
| 25 void set_process_sync_changes_error(const SyncError& error); | 25 void set_process_sync_changes_error(const SyncError& error); |
| 26 | 26 |
| 27 // Setter for AttachmentStore. | 27 // Setter for AttachmentStore. |
| 28 void set_attachment_store(std::unique_ptr<AttachmentStore> attachment_store); | 28 void set_attachment_store(std::unique_ptr<AttachmentStore> attachment_store); |
| 29 | 29 |
| 30 // AttachmentService should be set when this syncable service is connected, | 30 // AttachmentService should be set when this syncable service is connected, |
| 31 // just before MergeDataAndStartSyncing. NULL is returned by default. | 31 // just before MergeDataAndStartSyncing. null is returned by default. |
|
maxbogue
2016/10/17 20:33:14
nit: Null (sentences begin with capital letters.)
skym
2016/10/17 20:36:00
Done.
| |
| 32 const AttachmentService* attachment_service() const; | 32 const AttachmentService* attachment_service() const; |
| 33 | 33 |
| 34 // Whether we're syncing or not. Set on a successful MergeDataAndStartSyncing, | 34 // Whether we're syncing or not. Set on a successful MergeDataAndStartSyncing, |
| 35 // unset on StopSyncing. False by default. | 35 // unset on StopSyncing. False by default. |
| 36 bool syncing() const; | 36 bool syncing() const; |
| 37 | 37 |
| 38 // SyncableService implementation. | 38 // SyncableService implementation. |
| 39 SyncMergeResult MergeDataAndStartSyncing( | 39 SyncMergeResult MergeDataAndStartSyncing( |
| 40 ModelType type, | 40 ModelType type, |
| 41 const SyncDataList& initial_sync_data, | 41 const SyncDataList& initial_sync_data, |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 55 SyncError process_sync_changes_error_; | 55 SyncError process_sync_changes_error_; |
| 56 bool syncing_; | 56 bool syncing_; |
| 57 ModelType type_; | 57 ModelType type_; |
| 58 std::unique_ptr<AttachmentStore> attachment_store_; | 58 std::unique_ptr<AttachmentStore> attachment_store_; |
| 59 std::unique_ptr<AttachmentService> attachment_service_; | 59 std::unique_ptr<AttachmentService> attachment_service_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace syncer | 62 } // namespace syncer |
| 63 | 63 |
| 64 #endif // COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ | 64 #endif // COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ |
| OLD | NEW |