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

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

Issue 2473613003: [Sync] Adds a new switch for enabling the new local server backend. (Closed)
Patch Set: Ifdef protect the variable. 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 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_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void Initialize( 60 virtual void Initialize(
61 SyncFrontend* frontend, 61 SyncFrontend* frontend,
62 std::unique_ptr<base::Thread> sync_thread, 62 std::unique_ptr<base::Thread> sync_thread,
63 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, 63 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
64 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, 64 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
65 const WeakHandle<JsEventHandler>& event_handler, 65 const WeakHandle<JsEventHandler>& event_handler,
66 const GURL& service_url, 66 const GURL& service_url,
67 const std::string& sync_user_agent, 67 const std::string& sync_user_agent,
68 const SyncCredentials& credentials, 68 const SyncCredentials& credentials,
69 bool delete_sync_data_folder, 69 bool delete_sync_data_folder,
70 bool enable_local_sync_backend,
71 const base::FilePath& local_sync_backend_folder,
70 std::unique_ptr<SyncManagerFactory> sync_manager_factory, 72 std::unique_ptr<SyncManagerFactory> sync_manager_factory,
71 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, 73 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
72 const base::Closure& report_unrecoverable_error_function, 74 const base::Closure& report_unrecoverable_error_function,
73 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, 75 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter,
74 std::unique_ptr<SyncEncryptionHandler::NigoriState> 76 std::unique_ptr<SyncEncryptionHandler::NigoriState>
75 saved_nigori_state) = 0; 77 saved_nigori_state) = 0;
76 78
77 // Called on the frontend's thread to trigger a refresh. 79 // Called on the frontend's thread to trigger a refresh.
78 virtual void TriggerRefresh(const ModelTypeSet& types) = 0; 80 virtual void TriggerRefresh(const ModelTypeSet& types) = 0;
79 81
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // See SyncManager::OnCookieJarChanged. 215 // See SyncManager::OnCookieJarChanged.
214 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 216 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
215 217
216 private: 218 private:
217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 219 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
218 }; 220 };
219 221
220 } // namespace syncer 222 } // namespace syncer
221 223
222 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 224 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service_unittest.cc ('k') | components/sync/driver/glue/sync_backend_host_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698