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 SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ | 5 #ifndef SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ |
6 #define SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ | 6 #define SYNC_INTERNAL_API_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 sync_api::PassphraseRequiredReason reason, | 41 sync_api::PassphraseRequiredReason reason, |
42 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 42 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
43 virtual void OnPassphraseAccepted() OVERRIDE; | 43 virtual void OnPassphraseAccepted() OVERRIDE; |
44 virtual void OnBootstrapTokenUpdated( | 44 virtual void OnBootstrapTokenUpdated( |
45 const std::string& bootstrap_token) OVERRIDE; | 45 const std::string& bootstrap_token) OVERRIDE; |
46 virtual void OnEncryptedTypesChanged( | 46 virtual void OnEncryptedTypesChanged( |
47 syncable::ModelTypeSet encrypted_types, | 47 syncable::ModelTypeSet encrypted_types, |
48 bool encrypt_everything) OVERRIDE; | 48 bool encrypt_everything) OVERRIDE; |
49 virtual void OnEncryptionComplete() OVERRIDE; | 49 virtual void OnEncryptionComplete() OVERRIDE; |
50 virtual void OnInitializationComplete( | 50 virtual void OnInitializationComplete( |
51 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; | 51 const WeakHandle<JsBackend>& js_backend, bool success, |
| 52 syncable::ModelTypeSet restored_types) OVERRIDE; |
52 virtual void OnStopSyncingPermanently() OVERRIDE; | 53 virtual void OnStopSyncingPermanently() OVERRIDE; |
53 virtual void OnClearServerDataSucceeded() OVERRIDE; | 54 virtual void OnClearServerDataSucceeded() OVERRIDE; |
54 virtual void OnClearServerDataFailed() OVERRIDE; | 55 virtual void OnClearServerDataFailed() OVERRIDE; |
55 virtual void OnActionableError( | 56 virtual void OnActionableError( |
56 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE; | 57 const browser_sync::SyncProtocolError& sync_protocol_error) OVERRIDE; |
57 | 58 |
58 private: | 59 private: |
59 void HandleJsEvent(const tracked_objects::Location& from_here, | 60 void HandleJsEvent(const tracked_objects::Location& from_here, |
60 const std::string& name, const JsEventDetails& details); | 61 const std::string& name, const JsEventDetails& details); |
61 | 62 |
62 WeakHandle<JsEventHandler> event_handler_; | 63 WeakHandle<JsEventHandler> event_handler_; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); | 65 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); |
65 }; | 66 }; |
66 | 67 |
67 } // namespace browser_sync | 68 } // namespace browser_sync |
68 | 69 |
69 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ | 70 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ |
OLD | NEW |