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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 int GetSyncCount(); | 82 virtual int GetSyncCount(); |
83 virtual syncer::SyncError ProcessSyncChanges( | 83 virtual syncer::SyncError ProcessSyncChanges( |
84 const tracked_objects::Location& from_here, | 84 const tracked_objects::Location& from_here, |
85 const syncer::SyncChangeList& change_list); | 85 const syncer::SyncChangeList& change_list); |
86 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const; | 86 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const; |
87 virtual syncer::SyncError GetAllSyncDataReturnError( | 87 virtual syncer::SyncError GetAllSyncDataReturnError( |
88 syncer::ModelType type, | 88 syncer::ModelType type, |
89 syncer::SyncDataList* data) const; | 89 syncer::SyncDataList* data) const; |
| 90 virtual syncer::SyncError UpdateDataTypeContext(syncer::ModelType type, |
| 91 const std::string& context); |
90 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); | 92 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); |
91 virtual bool CryptoReadyIfNecessary(); | 93 virtual bool CryptoReadyIfNecessary(); |
92 | 94 |
93 // Register |generic_change_processor_| as the change processor for the | 95 // Register |generic_change_processor_| as the change processor for the |
94 // current type on |model_safe_group|. | 96 // current type on |model_safe_group|. |
95 // Does nothing if |disconnected_| is true. | 97 // Does nothing if |disconnected_| is true. |
96 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group); | 98 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group); |
97 | 99 |
98 virtual syncer::SyncError CreateAndUploadError( | 100 virtual syncer::SyncError CreateAndUploadError( |
99 const tracked_objects::Location& location, | 101 const tracked_objects::Location& location, |
(...skipping 26 matching lines...) Expand all Loading... |
126 GenericChangeProcessor* generic_change_processor_; | 128 GenericChangeProcessor* generic_change_processor_; |
127 | 129 |
128 DataTypeErrorHandler* error_handler_; | 130 DataTypeErrorHandler* error_handler_; |
129 | 131 |
130 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor); | 132 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor); |
131 }; | 133 }; |
132 | 134 |
133 } // namespace browser_sync | 135 } // namespace browser_sync |
134 | 136 |
135 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ | 137 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ |
OLD | NEW |