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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.h

Issue 1275743002: [Sync] Remove backend unrecoverable error handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak Created 5 years, 4 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 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 15 matching lines...) Expand all
26 ~SyncBackendHostMock() override; 26 ~SyncBackendHostMock() override;
27 27
28 void Initialize( 28 void Initialize(
29 sync_driver::SyncFrontend* frontend, 29 sync_driver::SyncFrontend* frontend,
30 scoped_ptr<base::Thread> sync_thread, 30 scoped_ptr<base::Thread> sync_thread,
31 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, 31 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler,
32 const GURL& service_url, 32 const GURL& service_url,
33 const syncer::SyncCredentials& credentials, 33 const syncer::SyncCredentials& credentials,
34 bool delete_sync_data_folder, 34 bool delete_sync_data_folder,
35 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, 35 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory,
36 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, 36 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>&
37 unrecoverable_error_handler,
37 const base::Closure& report_unrecoverable_error_function, 38 const base::Closure& report_unrecoverable_error_function,
38 syncer::NetworkResources* network_resources, 39 syncer::NetworkResources* network_resources,
39 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) 40 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state)
40 override; 41 override;
41 42
42 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; 43 void UpdateCredentials(const syncer::SyncCredentials& credentials) override;
43 44
44 void StartSyncingWithServer() override; 45 void StartSyncingWithServer() override;
45 46
46 void SetEncryptionPassphrase(const std::string& passphrase, 47 void SetEncryptionPassphrase(const std::string& passphrase,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 void set_fail_initial_download(bool should_fail); 115 void set_fail_initial_download(bool should_fail);
115 116
116 private: 117 private:
117 bool fail_initial_download_; 118 bool fail_initial_download_;
118 }; 119 };
119 120
120 } // namespace browser_sync 121 } // namespace browser_sync
121 122
122 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 123 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698