| 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_ENCRYPTION_HANDLER_OBSERVER_H_ | 5 #ifndef SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ |
| 6 #define SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ | 6 #define SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 36 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
| 37 virtual void OnPassphraseAccepted() OVERRIDE; | 37 virtual void OnPassphraseAccepted() OVERRIDE; |
| 38 virtual void OnBootstrapTokenUpdated( | 38 virtual void OnBootstrapTokenUpdated( |
| 39 const std::string& bootstrap_token) OVERRIDE; | 39 const std::string& bootstrap_token) OVERRIDE; |
| 40 virtual void OnEncryptedTypesChanged( | 40 virtual void OnEncryptedTypesChanged( |
| 41 ModelTypeSet encrypted_types, | 41 ModelTypeSet encrypted_types, |
| 42 bool encrypt_everything) OVERRIDE; | 42 bool encrypt_everything) OVERRIDE; |
| 43 virtual void OnEncryptionComplete() OVERRIDE; | 43 virtual void OnEncryptionComplete() OVERRIDE; |
| 44 virtual void OnCryptographerStateChanged( | 44 virtual void OnCryptographerStateChanged( |
| 45 Cryptographer* cryptographer) OVERRIDE; | 45 Cryptographer* cryptographer) OVERRIDE; |
| 46 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 void HandleJsEvent(const tracked_objects::Location& from_here, | 49 void HandleJsEvent(const tracked_objects::Location& from_here, |
| 49 const std::string& name, const JsEventDetails& details); | 50 const std::string& name, const JsEventDetails& details); |
| 50 | 51 |
| 51 WeakHandle<JsEventHandler> event_handler_; | 52 WeakHandle<JsEventHandler> event_handler_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver); | 54 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace syncer | 57 } // namespace syncer |
| 57 | 58 |
| 58 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ | 59 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ |
| OLD | NEW |