| 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_GLUE_SHARED_CHANGE_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual bool Disconnect(); | 78 virtual bool Disconnect(); |
| 79 | 79 |
| 80 // GenericChangeProcessor stubs (with disconnect support). | 80 // GenericChangeProcessor stubs (with disconnect support). |
| 81 // Should only be called on the same thread the datatype resides. | 81 // Should only be called on the same thread the datatype resides. |
| 82 virtual syncer::SyncError GetSyncData( | 82 virtual syncer::SyncError GetSyncData( |
| 83 syncer::SyncDataList* current_sync_data); | 83 syncer::SyncDataList* current_sync_data); |
| 84 virtual int GetSyncCount(); | 84 virtual int GetSyncCount(); |
| 85 virtual syncer::SyncError ProcessSyncChanges( | 85 virtual syncer::SyncError ProcessSyncChanges( |
| 86 const tracked_objects::Location& from_here, | 86 const tracked_objects::Location& from_here, |
| 87 const syncer::SyncChangeList& change_list); | 87 const syncer::SyncChangeList& change_list); |
| 88 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const; |
| 88 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); | 89 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); |
| 89 virtual bool CryptoReadyIfNecessary(); | 90 virtual bool CryptoReadyIfNecessary(); |
| 90 | 91 |
| 91 // Register |generic_change_processor_| as the change processor for the | 92 // Register |generic_change_processor_| as the change processor for the |
| 92 // current type on |model_safe_group|. | 93 // current type on |model_safe_group|. |
| 93 // Does nothing if |disconnected_| is true. | 94 // Does nothing if |disconnected_| is true. |
| 94 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group); | 95 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group); |
| 95 | 96 |
| 96 virtual syncer::SyncError CreateAndUploadError( | 97 virtual syncer::SyncError CreateAndUploadError( |
| 97 const tracked_objects::Location& location, | 98 const tracked_objects::Location& location, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 124 GenericChangeProcessor* generic_change_processor_; | 125 GenericChangeProcessor* generic_change_processor_; |
| 125 | 126 |
| 126 DataTypeErrorHandler* error_handler_; | 127 DataTypeErrorHandler* error_handler_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor); | 129 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace browser_sync | 132 } // namespace browser_sync |
| 132 | 133 |
| 133 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ | 134 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ |
| OLD | NEW |