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

Side by Side Diff: components/sync/engine/sync_engine_host.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
« no previous file with comments | « components/sync/engine/sync_engine.h ('k') | components/sync/engine/sync_engine_host_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/sync/base/model_type.h" 10 #include "components/sync/base/model_type.h"
(...skipping 30 matching lines...) Expand all
41 // |js_backend| is what about:sync interacts with. It is initialized only if 41 // |js_backend| is what about:sync interacts with. It is initialized only if
42 // |success| is true. 42 // |success| is true.
43 virtual void OnEngineInitialized( 43 virtual void OnEngineInitialized(
44 ModelTypeSet initial_types, 44 ModelTypeSet initial_types,
45 const WeakHandle<JsBackend>& js_backend, 45 const WeakHandle<JsBackend>& js_backend,
46 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 46 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
47 const std::string& cache_guid, 47 const std::string& cache_guid,
48 bool success) = 0; 48 bool success) = 0;
49 49
50 // The engine queried the server recently and received some updates. 50 // The engine queried the server recently and received some updates.
51 virtual void OnSyncCycleCompleted() = 0; 51 virtual void OnSyncCycleCompleted(const SyncCycleSnapshot& snapshot) = 0;
52 52
53 // Informs the host of some network event. These notifications are disabled by 53 // Informs the host of some network event. These notifications are disabled by
54 // default and must be enabled through an explicit request to the SyncEngine. 54 // default and must be enabled through an explicit request to the SyncEngine.
55 // 55 //
56 // It's disabled by default to avoid copying data across threads when no one 56 // It's disabled by default to avoid copying data across threads when no one
57 // is listening for it. 57 // is listening for it.
58 virtual void OnProtocolEvent(const ProtocolEvent& event) = 0; 58 virtual void OnProtocolEvent(const ProtocolEvent& event) = 0;
59 59
60 // Called when we receive an updated commit counter for a directory type. 60 // Called when we receive an updated commit counter for a directory type.
61 // 61 //
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // |nigori_state| contains the new (post custom passphrase) encryption keys 132 // |nigori_state| contains the new (post custom passphrase) encryption keys
133 // and can be used to restore SyncEncryptionHandler's state across sync 133 // and can be used to restore SyncEncryptionHandler's state across sync
134 // engine instances. See also SyncEncryptionHandlerImpl::RestoreNigori. 134 // engine instances. See also SyncEncryptionHandlerImpl::RestoreNigori.
135 virtual void OnLocalSetPassphraseEncryption( 135 virtual void OnLocalSetPassphraseEncryption(
136 const SyncEncryptionHandler::NigoriState& nigori_state) = 0; 136 const SyncEncryptionHandler::NigoriState& nigori_state) = 0;
137 }; 137 };
138 138
139 } // namespace syncer 139 } // namespace syncer
140 140
141 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_H_ 141 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_HOST_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_engine.h ('k') | components/sync/engine/sync_engine_host_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698