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