| OLD | NEW |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const std::string& sync_user_agent, | 92 const std::string& sync_user_agent, |
| 93 const syncer::SyncCredentials& credentials, | 93 const syncer::SyncCredentials& credentials, |
| 94 bool delete_sync_data_folder, | 94 bool delete_sync_data_folder, |
| 95 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, | 95 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, |
| 96 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& | 96 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& |
| 97 unrecoverable_error_handler, | 97 unrecoverable_error_handler, |
| 98 const base::Closure& report_unrecoverable_error_function, | 98 const base::Closure& report_unrecoverable_error_function, |
| 99 syncer::NetworkResources* network_resources, | 99 syncer::NetworkResources* network_resources, |
| 100 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) | 100 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) |
| 101 override; | 101 override; |
| 102 void TriggerRefresh(const syncer::ModelTypeSet& types) override; |
| 102 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; | 103 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; |
| 103 void StartSyncingWithServer() override; | 104 void StartSyncingWithServer() override; |
| 104 void SetEncryptionPassphrase(const std::string& passphrase, | 105 void SetEncryptionPassphrase(const std::string& passphrase, |
| 105 bool is_explicit) override; | 106 bool is_explicit) override; |
| 106 bool SetDecryptionPassphrase(const std::string& passphrase) override | 107 bool SetDecryptionPassphrase(const std::string& passphrase) override |
| 107 WARN_UNUSED_RESULT; | 108 WARN_UNUSED_RESULT; |
| 108 void StopSyncingForShutdown() override; | 109 void StopSyncingForShutdown() override; |
| 109 scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) override; | 110 scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) override; |
| 110 void UnregisterInvalidationIds() override; | 111 void UnregisterInvalidationIds() override; |
| 111 syncer::ModelTypeSet ConfigureDataTypes( | 112 syncer::ModelTypeSet ConfigureDataTypes( |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 bool invalidation_handler_registered_; | 387 bool invalidation_handler_registered_; |
| 387 | 388 |
| 388 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 389 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
| 389 | 390 |
| 390 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 391 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
| 391 }; | 392 }; |
| 392 | 393 |
| 393 } // namespace browser_sync | 394 } // namespace browser_sync |
| 394 | 395 |
| 395 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 396 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| OLD | NEW |