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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.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 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_MOCK_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 void Initialize( 29 void Initialize(
30 SyncFrontend* frontend, 30 SyncFrontend* frontend,
31 std::unique_ptr<base::Thread> sync_thread, 31 std::unique_ptr<base::Thread> sync_thread,
32 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, 32 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
33 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread, 33 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
34 const WeakHandle<JsEventHandler>& event_handler, 34 const WeakHandle<JsEventHandler>& event_handler,
35 const GURL& service_url, 35 const GURL& service_url,
36 const std::string& sync_user_agent, 36 const std::string& sync_user_agent,
37 const SyncCredentials& credentials, 37 const SyncCredentials& credentials,
38 bool delete_sync_data_folder, 38 bool delete_sync_data_folder,
39 bool enable_local_sync_backend,
40 const base::FilePath& local_sync_backend_folder,
39 std::unique_ptr<SyncManagerFactory> sync_manager_factory, 41 std::unique_ptr<SyncManagerFactory> sync_manager_factory,
40 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, 42 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
41 const base::Closure& report_unrecoverable_error_function, 43 const base::Closure& report_unrecoverable_error_function,
42 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter, 44 const HttpPostProviderFactoryGetter& http_post_provider_factory_getter,
43 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state) 45 std::unique_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state)
44 override; 46 override;
45 47
46 void TriggerRefresh(const ModelTypeSet& types) override; 48 void TriggerRefresh(const ModelTypeSet& types) override;
47 49
48 void UpdateCredentials(const SyncCredentials& credentials) override; 50 void UpdateCredentials(const SyncCredentials& credentials) override;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 116
115 void set_fail_initial_download(bool should_fail); 117 void set_fail_initial_download(bool should_fail);
116 118
117 private: 119 private:
118 bool fail_initial_download_; 120 bool fail_initial_download_;
119 }; 121 };
120 122
121 } // namespace syncer 123 } // namespace syncer
122 124
123 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 125 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl_unittest.cc ('k') | components/sync/driver/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698