| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; | 149 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; |
| 150 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; | 150 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; |
| 151 | 151 |
| 152 // ServerConnectionEventListener implementation. | 152 // ServerConnectionEventListener implementation. |
| 153 virtual void OnServerConnectionEvent( | 153 virtual void OnServerConnectionEvent( |
| 154 const ServerConnectionEvent& event) OVERRIDE; | 154 const ServerConnectionEvent& event) OVERRIDE; |
| 155 | 155 |
| 156 // JsBackend implementation. | 156 // JsBackend implementation. |
| 157 virtual void SetJsEventHandler( | 157 virtual void SetJsEventHandler( |
| 158 const WeakHandle<JsEventHandler>& event_handler) OVERRIDE; | 158 const WeakHandle<JsEventHandler>& event_handler) OVERRIDE; |
| 159 virtual void ProcessJsMessage( | |
| 160 const std::string& name, const JsArgList& args, | |
| 161 const WeakHandle<JsReplyHandler>& reply_handler) OVERRIDE; | |
| 162 | 159 |
| 163 // DirectoryChangeDelegate implementation. | 160 // DirectoryChangeDelegate implementation. |
| 164 // This listener is called upon completion of a syncable transaction, and | 161 // This listener is called upon completion of a syncable transaction, and |
| 165 // builds the list of sync-engine initiated changes that will be forwarded to | 162 // builds the list of sync-engine initiated changes that will be forwarded to |
| 166 // the SyncManager's Observers. | 163 // the SyncManager's Observers. |
| 167 virtual void HandleTransactionCompleteChangeEvent( | 164 virtual void HandleTransactionCompleteChangeEvent( |
| 168 ModelTypeSet models_with_changes) OVERRIDE; | 165 ModelTypeSet models_with_changes) OVERRIDE; |
| 169 virtual ModelTypeSet HandleTransactionEndingChangeEvent( | 166 virtual ModelTypeSet HandleTransactionEndingChangeEvent( |
| 170 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 167 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 171 syncable::BaseTransaction* trans) OVERRIDE; | 168 syncable::BaseTransaction* trans) OVERRIDE; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 354 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 358 | 355 |
| 359 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 356 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
| 360 | 357 |
| 361 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 358 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 362 }; | 359 }; |
| 363 | 360 |
| 364 } // namespace syncer | 361 } // namespace syncer |
| 365 | 362 |
| 366 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 363 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |