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 COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
| 15 #include "base/callback_forward.h" |
15 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "components/sync/base/cryptographer.h" | 18 #include "components/sync/base/cryptographer.h" |
18 #include "components/sync/base/time.h" | 19 #include "components/sync/base/time.h" |
19 #include "components/sync/engine/sync_manager.h" | 20 #include "components/sync/engine/sync_manager.h" |
20 #include "components/sync/engine_impl/all_status.h" | 21 #include "components/sync/engine_impl/all_status.h" |
21 #include "components/sync/engine_impl/debug_info_event_listener.h" | 22 #include "components/sync/engine_impl/debug_info_event_listener.h" |
22 #include "components/sync/engine_impl/events/protocol_event_buffer.h" | 23 #include "components/sync/engine_impl/events/protocol_event_buffer.h" |
23 #include "components/sync/engine_impl/js_mutation_event_observer.h" | 24 #include "components/sync/engine_impl/js_mutation_event_observer.h" |
24 #include "components/sync/engine_impl/js_sync_encryption_handler_observer.h" | 25 #include "components/sync/engine_impl/js_sync_encryption_handler_observer.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 SyncEncryptionHandler* GetEncryptionHandler() override; | 97 SyncEncryptionHandler* GetEncryptionHandler() override; |
97 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents() | 98 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents() |
98 override; | 99 override; |
99 void RegisterDirectoryTypeDebugInfoObserver( | 100 void RegisterDirectoryTypeDebugInfoObserver( |
100 TypeDebugInfoObserver* observer) override; | 101 TypeDebugInfoObserver* observer) override; |
101 void UnregisterDirectoryTypeDebugInfoObserver( | 102 void UnregisterDirectoryTypeDebugInfoObserver( |
102 TypeDebugInfoObserver* observer) override; | 103 TypeDebugInfoObserver* observer) override; |
103 bool HasDirectoryTypeDebugInfoObserver( | 104 bool HasDirectoryTypeDebugInfoObserver( |
104 TypeDebugInfoObserver* observer) override; | 105 TypeDebugInfoObserver* observer) override; |
105 void RequestEmitDebugInfo() override; | 106 void RequestEmitDebugInfo() override; |
106 void ClearServerData(const ClearServerDataCallback& callback) override; | 107 void ClearServerData(const base::Closure& callback) override; |
107 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; | 108 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; |
108 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) override; | 109 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) override; |
109 | 110 |
110 // SyncEncryptionHandler::Observer implementation. | 111 // SyncEncryptionHandler::Observer implementation. |
111 void OnPassphraseRequired( | 112 void OnPassphraseRequired( |
112 PassphraseRequiredReason reason, | 113 PassphraseRequiredReason reason, |
113 const sync_pb::EncryptedData& pending_keys) override; | 114 const sync_pb::EncryptedData& pending_keys) override; |
114 void OnPassphraseAccepted() override; | 115 void OnPassphraseAccepted() override; |
115 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, | 116 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, |
116 BootstrapTokenType type) override; | 117 BootstrapTokenType type) override; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 324 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
324 | 325 |
325 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 326 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
326 | 327 |
327 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 328 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
328 }; | 329 }; |
329 | 330 |
330 } // namespace syncer | 331 } // namespace syncer |
331 | 332 |
332 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ | 333 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ |
OLD | NEW |