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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 syncer::PassphraseRequiredReason reason, | 40 syncer::PassphraseRequiredReason reason, |
41 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 41 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
42 virtual void OnPassphraseAccepted() OVERRIDE; | 42 virtual void OnPassphraseAccepted() OVERRIDE; |
43 virtual void OnBootstrapTokenUpdated( | 43 virtual void OnBootstrapTokenUpdated( |
44 const std::string& bootstrap_token) OVERRIDE; | 44 const std::string& bootstrap_token) OVERRIDE; |
45 virtual void OnEncryptedTypesChanged( | 45 virtual void OnEncryptedTypesChanged( |
46 syncer::ModelTypeSet encrypted_types, | 46 syncer::ModelTypeSet encrypted_types, |
47 bool encrypt_everything) OVERRIDE; | 47 bool encrypt_everything) OVERRIDE; |
48 virtual void OnEncryptionComplete() OVERRIDE; | 48 virtual void OnEncryptionComplete() OVERRIDE; |
49 virtual void OnInitializationComplete( | 49 virtual void OnInitializationComplete( |
50 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; | 50 const WeakHandle<JsBackend>& js_backend, bool success, |
| 51 syncer::ModelTypeSet restored_types) OVERRIDE; |
51 virtual void OnStopSyncingPermanently() OVERRIDE; | 52 virtual void OnStopSyncingPermanently() OVERRIDE; |
52 virtual void OnActionableError( | 53 virtual void OnActionableError( |
53 const syncer::SyncProtocolError& sync_protocol_error) OVERRIDE; | 54 const syncer::SyncProtocolError& sync_protocol_error) OVERRIDE; |
54 | 55 |
55 private: | 56 private: |
56 void HandleJsEvent(const tracked_objects::Location& from_here, | 57 void HandleJsEvent(const tracked_objects::Location& from_here, |
57 const std::string& name, const JsEventDetails& details); | 58 const std::string& name, const JsEventDetails& details); |
58 | 59 |
59 WeakHandle<JsEventHandler> event_handler_; | 60 WeakHandle<JsEventHandler> event_handler_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); | 62 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace syncer | 65 } // namespace syncer |
65 | 66 |
66 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ | 67 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ |
OLD | NEW |