| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_JS_JS_SYNC_MANAGER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual void OnPassphraseAccepted( | 41 virtual void OnPassphraseAccepted( |
| 42 const std::string& bootstrap_token) OVERRIDE; | 42 const std::string& bootstrap_token) OVERRIDE; |
| 43 virtual void OnEncryptionComplete( | 43 virtual void OnEncryptionComplete( |
| 44 const syncable::ModelTypeSet& encrypted_types) OVERRIDE; | 44 const syncable::ModelTypeSet& encrypted_types) OVERRIDE; |
| 45 virtual void OnInitializationComplete( | 45 virtual void OnInitializationComplete( |
| 46 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; | 46 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; |
| 47 virtual void OnStopSyncingPermanently() OVERRIDE; | 47 virtual void OnStopSyncingPermanently() OVERRIDE; |
| 48 virtual void OnClearServerDataSucceeded() OVERRIDE; | 48 virtual void OnClearServerDataSucceeded() OVERRIDE; |
| 49 virtual void OnClearServerDataFailed() OVERRIDE; | 49 virtual void OnClearServerDataFailed() OVERRIDE; |
| 50 virtual void OnActionableError( | 50 virtual void OnActionableError( |
| 51 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE; | 51 const browser_sync::SyncOperationResult& sync_protocol_error) OVERRIDE; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 void HandleJsEvent(const tracked_objects::Location& from_here, | 54 void HandleJsEvent(const tracked_objects::Location& from_here, |
| 55 const std::string& name, const JsEventDetails& details); | 55 const std::string& name, const JsEventDetails& details); |
| 56 | 56 |
| 57 WeakHandle<JsEventHandler> event_handler_; | 57 WeakHandle<JsEventHandler> event_handler_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); | 59 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace browser_sync | 62 } // namespace browser_sync |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ | 64 #endif // CHROME_BROWSER_SYNC_JS_JS_SYNC_MANAGER_OBSERVER_H_ |
| OLD | NEW |