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

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

Issue 2624943002: [Sync] Move snapshot cache from SBHI to PSS. (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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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_SYNC_ENGINE_HOST_STUB_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/sync/engine/sync_engine_host.h" 10 #include "components/sync/engine/sync_engine_host.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 13
14 class SyncEngineHostStub : public SyncEngineHost { 14 class SyncEngineHostStub : public SyncEngineHost {
15 public: 15 public:
16 SyncEngineHostStub(); 16 SyncEngineHostStub();
17 ~SyncEngineHostStub() override; 17 ~SyncEngineHostStub() override;
18 18
19 // SyncEngineHost implementation. 19 // SyncEngineHost implementation.
20 void OnEngineInitialized( 20 void OnEngineInitialized(
21 ModelTypeSet initial_types, 21 ModelTypeSet initial_types,
22 const WeakHandle<JsBackend>& js_backend, 22 const WeakHandle<JsBackend>& js_backend,
23 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 23 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
24 const std::string& cache_guid, 24 const std::string& cache_guid,
25 bool success) override; 25 bool success) override;
26 void OnSyncCycleCompleted() override; 26 void OnSyncCycleCompleted(const SyncCycleSnapshot& snapshot) override;
27 void OnProtocolEvent(const ProtocolEvent& event) override; 27 void OnProtocolEvent(const ProtocolEvent& event) override;
28 void OnDirectoryTypeCommitCounterUpdated( 28 void OnDirectoryTypeCommitCounterUpdated(
29 ModelType type, 29 ModelType type,
30 const CommitCounters& counters) override; 30 const CommitCounters& counters) override;
31 void OnDirectoryTypeUpdateCounterUpdated( 31 void OnDirectoryTypeUpdateCounterUpdated(
32 ModelType type, 32 ModelType type,
33 const UpdateCounters& counters) override; 33 const UpdateCounters& counters) override;
34 void OnDatatypeStatusCounterUpdated(ModelType type, 34 void OnDatatypeStatusCounterUpdated(ModelType type,
35 const StatusCounters& counters) override; 35 const StatusCounters& counters) override;
36 void OnConnectionStatusChange(ConnectionStatus status) override; 36 void OnConnectionStatusChange(ConnectionStatus status) override;
37 void OnPassphraseRequired( 37 void OnPassphraseRequired(
38 PassphraseRequiredReason reason, 38 PassphraseRequiredReason reason,
39 const sync_pb::EncryptedData& pending_keys) override; 39 const sync_pb::EncryptedData& pending_keys) override;
40 void OnPassphraseAccepted() override; 40 void OnPassphraseAccepted() override;
41 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, 41 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types,
42 bool encrypt_everything) override; 42 bool encrypt_everything) override;
43 void OnEncryptionComplete() override; 43 void OnEncryptionComplete() override;
44 void OnMigrationNeededForTypes(ModelTypeSet types) override; 44 void OnMigrationNeededForTypes(ModelTypeSet types) override;
45 void OnExperimentsChanged(const Experiments& experiments) override; 45 void OnExperimentsChanged(const Experiments& experiments) override;
46 void OnActionableError(const SyncProtocolError& error) override; 46 void OnActionableError(const SyncProtocolError& error) override;
47 void OnLocalSetPassphraseEncryption( 47 void OnLocalSetPassphraseEncryption(
48 const SyncEncryptionHandler::NigoriState& nigori_state) override; 48 const SyncEncryptionHandler::NigoriState& nigori_state) override;
49 }; 49 };
50 50
51 } // namespace syncer 51 } // namespace syncer
52 52
53 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_ 53 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_STUB_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_engine_host.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