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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.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_IMPL_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 35
36 namespace base { 36 namespace base {
37 class MessageLoop; 37 class MessageLoop;
38 } 38 }
39 39
40 namespace invalidation { 40 namespace invalidation {
41 class InvalidationService; 41 class InvalidationService;
42 } 42 }
43 43
44 namespace syncer { 44 namespace syncer {
45 class HttpPostProviderFactory;
45 class SyncManagerFactory; 46 class SyncManagerFactory;
46 } 47 }
47 48
48 namespace browser_sync { 49 namespace browser_sync {
49 50
50 class ChangeProcessor; 51 class ChangeProcessor;
51 class SyncBackendHostCore; 52 class SyncBackendHostCore;
52 class SyncBackendRegistrar; 53 class SyncBackendRegistrar;
53 class SyncPrefs; 54 class SyncPrefs;
54 class SyncedDeviceTracker; 55 class SyncedDeviceTracker;
(...skipping 22 matching lines...) Expand all
77 virtual void Initialize( 78 virtual void Initialize(
78 SyncFrontend* frontend, 79 SyncFrontend* frontend,
79 scoped_ptr<base::Thread> sync_thread, 80 scoped_ptr<base::Thread> sync_thread,
80 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, 81 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler,
81 const GURL& service_url, 82 const GURL& service_url,
82 const syncer::SyncCredentials& credentials, 83 const syncer::SyncCredentials& credentials,
83 bool delete_sync_data_folder, 84 bool delete_sync_data_folder,
84 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, 85 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory,
85 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, 86 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler,
86 syncer::ReportUnrecoverableErrorFunction 87 syncer::ReportUnrecoverableErrorFunction
87 report_unrecoverable_error_function) OVERRIDE; 88 report_unrecoverable_error_function,
89 scoped_ptr<syncer::HttpPostProviderFactory>
90 http_post_provider_factory) OVERRIDE;
88 virtual void UpdateCredentials( 91 virtual void UpdateCredentials(
89 const syncer::SyncCredentials& credentials) OVERRIDE; 92 const syncer::SyncCredentials& credentials) OVERRIDE;
90 virtual void StartSyncingWithServer() OVERRIDE; 93 virtual void StartSyncingWithServer() OVERRIDE;
91 virtual void SetEncryptionPassphrase( 94 virtual void SetEncryptionPassphrase(
92 const std::string& passphrase, 95 const std::string& passphrase,
93 bool is_explicit) OVERRIDE; 96 bool is_explicit) OVERRIDE;
94 virtual bool SetDecryptionPassphrase(const std::string& passphrase) 97 virtual bool SetDecryptionPassphrase(const std::string& passphrase)
95 WARN_UNUSED_RESULT OVERRIDE; 98 WARN_UNUSED_RESULT OVERRIDE;
96 virtual void StopSyncingForShutdown() OVERRIDE; 99 virtual void StopSyncingForShutdown() OVERRIDE;
97 virtual scoped_ptr<base::Thread> Shutdown(ShutdownOption option) OVERRIDE; 100 virtual scoped_ptr<base::Thread> Shutdown(ShutdownOption option) OVERRIDE;
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 320
318 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 321 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
319 322
320 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 323 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
321 }; 324 };
322 325
323 } // namespace browser_sync 326 } // namespace browser_sync
324 327
325 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 328 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
326 329
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698