| 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 COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ |
| 6 #define COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ | 6 #define COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); | 31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); |
| 32 | 32 |
| 33 // SyncManager::Observer implementation. | 33 // SyncManager::Observer implementation. |
| 34 void OnSyncCycleCompleted(const SyncCycleSnapshot& snapshot) override; | 34 void OnSyncCycleCompleted(const SyncCycleSnapshot& snapshot) override; |
| 35 void OnConnectionStatusChange(ConnectionStatus status) override; | 35 void OnConnectionStatusChange(ConnectionStatus status) override; |
| 36 void OnInitializationComplete( | 36 void OnInitializationComplete( |
| 37 const WeakHandle<JsBackend>& js_backend, | 37 const WeakHandle<JsBackend>& js_backend, |
| 38 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, | 38 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, |
| 39 bool success, | 39 bool success, |
| 40 ModelTypeSet restored_types) override; | 40 syncer::ModelTypeSet restored_types) override; |
| 41 void OnActionableError(const SyncProtocolError& sync_protocol_error) override; | 41 void OnActionableError(const SyncProtocolError& sync_protocol_error) override; |
| 42 void OnProtocolEvent(const ProtocolEvent& event) override; | 42 void OnProtocolEvent(const ProtocolEvent& event) override; |
| 43 void OnMigrationRequested(ModelTypeSet types) override; | 43 void OnMigrationRequested(syncer::ModelTypeSet types) override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 void HandleJsEvent(const tracked_objects::Location& from_here, | 46 void HandleJsEvent(const tracked_objects::Location& from_here, |
| 47 const std::string& name, | 47 const std::string& name, |
| 48 const JsEventDetails& details); | 48 const JsEventDetails& details); |
| 49 | 49 |
| 50 WeakHandle<JsEventHandler> event_handler_; | 50 WeakHandle<JsEventHandler> event_handler_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); | 52 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace syncer | 55 } // namespace syncer |
| 56 | 56 |
| 57 #endif // COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ | 57 #endif // COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ |
| OLD | NEW |