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_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override; | 102 ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override; |
103 scoped_ptr<base::ListValue> GetAllNodesForType( | 103 scoped_ptr<base::ListValue> GetAllNodesForType( |
104 syncer::ModelType type) override; | 104 syncer::ModelType type) override; |
105 void RegisterDirectoryTypeDebugInfoObserver( | 105 void RegisterDirectoryTypeDebugInfoObserver( |
106 syncer::TypeDebugInfoObserver* observer) override; | 106 syncer::TypeDebugInfoObserver* observer) override; |
107 void UnregisterDirectoryTypeDebugInfoObserver( | 107 void UnregisterDirectoryTypeDebugInfoObserver( |
108 syncer::TypeDebugInfoObserver* observer) override; | 108 syncer::TypeDebugInfoObserver* observer) override; |
109 bool HasDirectoryTypeDebugInfoObserver( | 109 bool HasDirectoryTypeDebugInfoObserver( |
110 syncer::TypeDebugInfoObserver* observer) override; | 110 syncer::TypeDebugInfoObserver* observer) override; |
111 void RequestEmitDebugInfo() override; | 111 void RequestEmitDebugInfo() override; |
| 112 void ClearServerData(const ClearServerDataCallback& callback) override; |
112 | 113 |
113 // SyncEncryptionHandler::Observer implementation. | 114 // SyncEncryptionHandler::Observer implementation. |
114 void OnPassphraseRequired( | 115 void OnPassphraseRequired( |
115 PassphraseRequiredReason reason, | 116 PassphraseRequiredReason reason, |
116 const sync_pb::EncryptedData& pending_keys) override; | 117 const sync_pb::EncryptedData& pending_keys) override; |
117 void OnPassphraseAccepted() override; | 118 void OnPassphraseAccepted() override; |
118 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, | 119 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, |
119 BootstrapTokenType type) override; | 120 BootstrapTokenType type) override; |
120 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, | 121 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, |
121 bool encrypt_everything) override; | 122 bool encrypt_everything) override; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 341 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
341 | 342 |
342 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 343 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
343 | 344 |
344 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 345 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
345 }; | 346 }; |
346 | 347 |
347 } // namespace syncer | 348 } // namespace syncer |
348 | 349 |
349 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 350 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |