Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: components/sync/engine/sync_engine_host_stub.h

Issue 2563423005: [Sync] Move ConfigureDataTypes logic into DataTypeManagerImpl. (Closed)
Patch Set: Address comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/engine/sync_engine.h ('k') | components/sync/engine/sync_engine_host_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_engine.h ('k') | components/sync/engine/sync_engine_host_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698