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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.h

Issue 2470153002: Revert of [Sync] Adds a new switch for enabling the new local server backend. (Closed)
Patch Set: Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void Initialize( 76 void Initialize(
77 SyncFrontend* frontend, 77 SyncFrontend* frontend,
78 std::unique_ptr<base::Thread> sync_thread, 78 std::unique_ptr<base::Thread> sync_thread,
79 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, 79 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
80 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, 80 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
81 const WeakHandle<JsEventHandler>& event_handler, 81 const WeakHandle<JsEventHandler>& event_handler,
82 const GURL& service_url, 82 const GURL& service_url,
83 const std::string& sync_user_agent, 83 const std::string& sync_user_agent,
84 const SyncCredentials& credentials, 84 const SyncCredentials& credentials,
85 bool delete_sync_data_folder, 85 bool delete_sync_data_folder,
86 bool enable_local_sync_backend,
87 const base::FilePath& local_sync_backend_folder,
88 std::unique_ptr<SyncManagerFactory> sync_manager_factory, 86 std::unique_ptr<SyncManagerFactory> sync_manager_factory,
89 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, 87 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
90 const base::Closure& report_unrecoverable_error_function, 88 const base::Closure& report_unrecoverable_error_function,
91 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, 89 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter,
92 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) 90 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state)
93 override; 91 override;
94 void TriggerRefresh(const ModelTypeSet& types) override; 92 void TriggerRefresh(const ModelTypeSet& types) override;
95 void UpdateCredentials(const SyncCredentials& credentials) override; 93 void UpdateCredentials(const SyncCredentials& credentials) override;
96 void StartSyncingWithServer() override; 94 void StartSyncingWithServer() override;
97 void SetEncryptionPassphrase(const std::string& passphrase, 95 void SetEncryptionPassphrase(const std::string& passphrase,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 bool invalidation_handler_registered_; 350 bool invalidation_handler_registered_;
353 351
354 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 352 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
355 353
356 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 354 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
357 }; 355 };
358 356
359 } // namespace syncer 357 } // namespace syncer
360 358
361 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 359 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698