OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ |
6 #define SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ | 6 #define COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "sync/base/sync_export.h" | 12 #include "components/sync/base/sync_export.h" |
13 #include "sync/internal_api/public/sync_encryption_handler.h" | 13 #include "components/sync/base/weak_handle.h" |
14 #include "sync/internal_api/public/util/weak_handle.h" | 14 #include "components/sync/core/sync_encryption_handler.h" |
15 #include "sync/protocol/sync_protocol_error.h" | 15 #include "components/sync/protocol/sync_protocol_error.h" |
16 | 16 |
17 namespace tracked_objects { | 17 namespace tracked_objects { |
18 class Location; | 18 class Location; |
19 } // namespace tracked_objects | 19 } // namespace tracked_objects |
20 | 20 |
21 namespace syncer { | 21 namespace syncer { |
22 | 22 |
23 class JsEventDetails; | 23 class JsEventDetails; |
24 class JsEventHandler; | 24 class JsEventHandler; |
25 | 25 |
(...skipping 17 matching lines...) Expand all Loading... |
43 bool encrypt_everything) override; | 43 bool encrypt_everything) override; |
44 void OnEncryptionComplete() override; | 44 void OnEncryptionComplete() override; |
45 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; | 45 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; |
46 void OnPassphraseTypeChanged(PassphraseType type, | 46 void OnPassphraseTypeChanged(PassphraseType type, |
47 base::Time explicit_passphrase_time) override; | 47 base::Time explicit_passphrase_time) override; |
48 void OnLocalSetPassphraseEncryption( | 48 void OnLocalSetPassphraseEncryption( |
49 const SyncEncryptionHandler::NigoriState& nigori_state) override; | 49 const SyncEncryptionHandler::NigoriState& nigori_state) override; |
50 | 50 |
51 private: | 51 private: |
52 void HandleJsEvent(const tracked_objects::Location& from_here, | 52 void HandleJsEvent(const tracked_objects::Location& from_here, |
53 const std::string& name, const JsEventDetails& details); | 53 const std::string& name, |
| 54 const JsEventDetails& details); |
54 | 55 |
55 WeakHandle<JsEventHandler> event_handler_; | 56 WeakHandle<JsEventHandler> event_handler_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver); | 58 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace syncer | 61 } // namespace syncer |
61 | 62 |
62 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ | 63 #endif // COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ |
OLD | NEW |