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

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

Issue 2555433003: [Sync] Plumb initial type set from engine to DTM. (Closed)
Patch Set: Rebase. Created 4 years 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/fake_sync_engine.cc ('k') | no next file » | 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 23 matching lines...) Expand all
34 SyncEngineHost(); 34 SyncEngineHost();
35 virtual ~SyncEngineHost(); 35 virtual ~SyncEngineHost();
36 36
37 // The engine has completed initialization and it is now ready to accept and 37 // The engine has completed initialization and it is now ready to accept and
38 // process changes. If success is false, initialization wasn't able to be 38 // process changes. If success is false, initialization wasn't able to be
39 // completed and should be retried. 39 // completed and should be retried.
40 // 40 //
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 const WeakHandle<JsBackend>& js_backend, 45 const WeakHandle<JsBackend>& js_backend,
45 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, 46 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
46 const std::string& cache_guid, 47 const std::string& cache_guid,
47 bool success) = 0; 48 bool success) = 0;
48 49
49 // The engine queried the server recently and received some updates. 50 // The engine queried the server recently and received some updates.
50 virtual void OnSyncCycleCompleted() = 0; 51 virtual void OnSyncCycleCompleted() = 0;
51 52
52 // 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
53 // 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.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // |nigori_state| contains the new (post custom passphrase) encryption keys 132 // |nigori_state| contains the new (post custom passphrase) encryption keys
132 // and can be used to restore SyncEncryptionHandler's state across sync 133 // and can be used to restore SyncEncryptionHandler's state across sync
133 // engine instances. See also SyncEncryptionHandlerImpl::RestoreNigori. 134 // engine instances. See also SyncEncryptionHandlerImpl::RestoreNigori.
134 virtual void OnLocalSetPassphraseEncryption( 135 virtual void OnLocalSetPassphraseEncryption(
135 const SyncEncryptionHandler::NigoriState& nigori_state) = 0; 136 const SyncEncryptionHandler::NigoriState& nigori_state) = 0;
136 }; 137 };
137 138
138 } // namespace syncer 139 } // namespace syncer
139 140
140 #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/fake_sync_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698