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

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

Issue 73723006: Allow customization of HttpPostProviderFactory via ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 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 17 matching lines...) Expand all
28 virtual void Initialize( 28 virtual void Initialize(
29 SyncFrontend* frontend, 29 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 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler,
37 syncer::ReportUnrecoverableErrorFunction 37 syncer::ReportUnrecoverableErrorFunction
38 report_unrecoverable_error_function) OVERRIDE; 38 report_unrecoverable_error_function,
39 scoped_ptr<syncer::HttpPostProviderFactory>
40 http_post_provider_factory) OVERRIDE;
39 41
40 virtual void UpdateCredentials( 42 virtual void UpdateCredentials(
41 const syncer::SyncCredentials& credentials) OVERRIDE; 43 const syncer::SyncCredentials& credentials) OVERRIDE;
42 44
43 virtual void StartSyncingWithServer() OVERRIDE; 45 virtual void StartSyncingWithServer() OVERRIDE;
44 46
45 virtual void SetEncryptionPassphrase( 47 virtual void SetEncryptionPassphrase(
46 const std::string& passphrase, 48 const std::string& passphrase,
47 bool is_explicit) OVERRIDE; 49 bool is_explicit) OVERRIDE;
48 50
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 98
97 void set_fail_initial_download(bool should_fail); 99 void set_fail_initial_download(bool should_fail);
98 100
99 private: 101 private:
100 bool fail_initial_download_; 102 bool fail_initial_download_;
101 }; 103 };
102 104
103 } // namespace browser_sync 105 } // namespace browser_sync
104 106
105 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 107 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698