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

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

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CORE_SYNC_MANAGER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
6 #define COMPONENTS_SYNC_CORE_SYNC_MANAGER_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/task_runner.h" 17 #include "base/task_runner.h"
18 #include "base/threading/thread_checker.h" 18 #include "base/threading/thread_checker.h"
19 #include "components/sync/base/invalidation_interface.h" 19 #include "components/sync/base/invalidation_interface.h"
20 #include "components/sync/base/model_type.h" 20 #include "components/sync/base/model_type.h"
21 #include "components/sync/base/weak_handle.h" 21 #include "components/sync/base/weak_handle.h"
22 #include "components/sync/core/configure_reason.h" 22 #include "components/sync/engine/configure_reason.h"
23 #include "components/sync/core/connection_status.h" 23 #include "components/sync/engine/connection_status.h"
24 #include "components/sync/core/internal_components_factory.h" 24 #include "components/sync/engine/engine_components_factory.h"
25 #include "components/sync/core/model_type_connector.h"
26 #include "components/sync/core/shutdown_reason.h"
27 #include "components/sync/core/sync_encryption_handler.h"
28 #include "components/sync/engine/events/protocol_event.h" 25 #include "components/sync/engine/events/protocol_event.h"
29 #include "components/sync/engine/model_safe_worker.h" 26 #include "components/sync/engine/model_safe_worker.h"
27 #include "components/sync/engine/model_type_connector.h"
30 #include "components/sync/engine/net/http_post_provider_factory.h" 28 #include "components/sync/engine/net/http_post_provider_factory.h"
29 #include "components/sync/engine/shutdown_reason.h"
30 #include "components/sync/engine/sync_encryption_handler.h"
31 #include "components/sync/engine/sync_status.h" 31 #include "components/sync/engine/sync_status.h"
32 #include "components/sync/protocol/sync_protocol_error.h" 32 #include "components/sync/protocol/sync_protocol_error.h"
33 #include "components/sync/syncable/change_record.h" 33 #include "components/sync/syncable/change_record.h"
34 #include "google_apis/gaia/oauth2_token_service.h" 34 #include "google_apis/gaia/oauth2_token_service.h"
35 35
36 class GURL; 36 class GURL;
37 37
38 namespace sync_pb { 38 namespace sync_pb {
39 class EncryptedData; 39 class EncryptedData;
40 } // namespace sync_pb 40 } // namespace sync_pb
41 41
42 namespace syncer { 42 namespace syncer {
43 43
44 class BaseTransaction; 44 class BaseTransaction;
45 class CancelationSignal; 45 class CancelationSignal;
46 class DataTypeDebugInfoListener; 46 class DataTypeDebugInfoListener;
47 class Encryptor; 47 class Encryptor;
48 class EngineComponentsFactory;
48 class ExtensionsActivity; 49 class ExtensionsActivity;
49 class InternalComponentsFactory;
50 class JsBackend; 50 class JsBackend;
51 class JsEventHandler; 51 class JsEventHandler;
52 class ProtocolEvent; 52 class ProtocolEvent;
53 class SyncCycleSnapshot; 53 class SyncCycleSnapshot;
54 class SyncEncryptionHandler; 54 class SyncEncryptionHandler;
55 class SyncScheduler; 55 class SyncScheduler;
56 class TypeDebugInfoObserver; 56 class TypeDebugInfoObserver;
57 class UnrecoverableErrorHandler; 57 class UnrecoverableErrorHandler;
58 struct Experiments; 58 struct Experiments;
59 struct UserShare; 59 struct UserShare;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Credentials to be used when talking to the sync server. 238 // Credentials to be used when talking to the sync server.
239 SyncCredentials credentials; 239 SyncCredentials credentials;
240 240
241 // Unqiuely identifies this client to the invalidation notification server. 241 // Unqiuely identifies this client to the invalidation notification server.
242 std::string invalidator_client_id; 242 std::string invalidator_client_id;
243 243
244 // Used to boostrap the cryptographer. 244 // Used to boostrap the cryptographer.
245 std::string restored_key_for_bootstrapping; 245 std::string restored_key_for_bootstrapping;
246 std::string restored_keystore_key_for_bootstrapping; 246 std::string restored_keystore_key_for_bootstrapping;
247 247
248 std::unique_ptr<InternalComponentsFactory> internal_components_factory; 248 std::unique_ptr<EngineComponentsFactory> engine_components_factory;
249 249
250 // Must outlive SyncManager. 250 // Must outlive SyncManager.
251 Encryptor* encryptor; 251 Encryptor* encryptor;
252 252
253 WeakHandle<UnrecoverableErrorHandler> unrecoverable_error_handler; 253 WeakHandle<UnrecoverableErrorHandler> unrecoverable_error_handler;
254 base::Closure report_unrecoverable_error_function; 254 base::Closure report_unrecoverable_error_function;
255 255
256 // Carries shutdown requests across threads and will be used to cut short 256 // Carries shutdown requests across threads and will be used to cut short
257 // any network I/O and tell the syncer to exit early. 257 // any network I/O and tell the syncer to exit early.
258 // 258 //
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; 392 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0;
393 393
394 // Updates Sync's tracking of whether the cookie jar has a mismatch with the 394 // Updates Sync's tracking of whether the cookie jar has a mismatch with the
395 // chrome account. See ClientConfigParams proto message for more info. 395 // chrome account. See ClientConfigParams proto message for more info.
396 // Note: this does not trigger a sync cycle. It just updates the sync context. 396 // Note: this does not trigger a sync cycle. It just updates the sync context.
397 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 397 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
398 }; 398 };
399 399
400 } // namespace syncer 400 } // namespace syncer
401 401
402 #endif // COMPONENTS_SYNC_CORE_SYNC_MANAGER_H_ 402 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « components/sync/engine/sync_encryption_handler.cc ('k') | components/sync/engine/sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698