OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "components/sync/engine/sync_engine_host.h" |
| 11 |
| 12 namespace syncer { |
| 13 |
| 14 class SyncEngineHostStub : public SyncEngineHost { |
| 15 public: |
| 16 SyncEngineHostStub(); |
| 17 ~SyncEngineHostStub() override; |
| 18 |
| 19 // SyncEngineHost implementation. |
| 20 void OnEngineInitialized( |
| 21 ModelTypeSet initial_types, |
| 22 const WeakHandle<JsBackend>& js_backend, |
| 23 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, |
| 24 const std::string& cache_guid, |
| 25 bool success) override; |
| 26 void OnSyncCycleCompleted() override; |
| 27 void OnProtocolEvent(const ProtocolEvent& event) override; |
| 28 void OnDirectoryTypeCommitCounterUpdated( |
| 29 ModelType type, |
| 30 const CommitCounters& counters) override; |
| 31 void OnDirectoryTypeUpdateCounterUpdated( |
| 32 ModelType type, |
| 33 const UpdateCounters& counters) override; |
| 34 void OnDatatypeStatusCounterUpdated(ModelType type, |
| 35 const StatusCounters& counters) override; |
| 36 void OnConnectionStatusChange(ConnectionStatus status) override; |
| 37 void OnPassphraseRequired( |
| 38 PassphraseRequiredReason reason, |
| 39 const sync_pb::EncryptedData& pending_keys) override; |
| 40 void OnPassphraseAccepted() override; |
| 41 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, |
| 42 bool encrypt_everything) override; |
| 43 void OnEncryptionComplete() override; |
| 44 void OnMigrationNeededForTypes(ModelTypeSet types) override; |
| 45 void OnExperimentsChanged(const Experiments& experiments) override; |
| 46 void OnActionableError(const SyncProtocolError& error) override; |
| 47 void OnLocalSetPassphraseEncryption( |
| 48 const SyncEncryptionHandler::NigoriState& nigori_state) override; |
| 49 }; |
| 50 |
| 51 } // namespace syncer |
| 52 |
| 53 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_ |
OLD | NEW |