| 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_CORE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 | 9 |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Called to perform initialization of the syncapi on behalf of | 143 // Called to perform initialization of the syncapi on behalf of |
| 144 // SyncBackendHost::Initialize. | 144 // SyncBackendHost::Initialize. |
| 145 void DoInitialize(scoped_ptr<DoInitializeOptions> options); | 145 void DoInitialize(scoped_ptr<DoInitializeOptions> options); |
| 146 | 146 |
| 147 // Called to perform credential update on behalf of | 147 // Called to perform credential update on behalf of |
| 148 // SyncBackendHost::UpdateCredentials. | 148 // SyncBackendHost::UpdateCredentials. |
| 149 void DoUpdateCredentials(const syncer::SyncCredentials& credentials); | 149 void DoUpdateCredentials(const syncer::SyncCredentials& credentials); |
| 150 | 150 |
| 151 // Called to tell the syncapi to start syncing (generally after | 151 // Called to tell the syncapi to start syncing (generally after |
| 152 // initialization and authentication). | 152 // initialization and authentication). |
| 153 void DoStartSyncing(const syncer::ModelSafeRoutingInfo& routing_info, | 153 void DoStartSyncing(const syncer::ModelSafeRoutingInfo& routing_info); |
| 154 base::Time last_poll_time); | |
| 155 | 154 |
| 156 // Called to set the passphrase for encryption. | 155 // Called to set the passphrase for encryption. |
| 157 void DoSetEncryptionPassphrase(const std::string& passphrase, | 156 void DoSetEncryptionPassphrase(const std::string& passphrase, |
| 158 bool is_explicit); | 157 bool is_explicit); |
| 159 | 158 |
| 160 // Called to decrypt the pending keys. | 159 // Called to decrypt the pending keys. |
| 161 void DoSetDecryptionPassphrase(const std::string& passphrase); | 160 void DoSetDecryptionPassphrase(const std::string& passphrase); |
| 162 | 161 |
| 163 // Called to turn on encryption of all sync data as well as | 162 // Called to turn on encryption of all sync data as well as |
| 164 // reencrypt everything. | 163 // reencrypt everything. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 bool forward_type_info_; | 300 bool forward_type_info_; |
| 302 | 301 |
| 303 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 302 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 304 | 303 |
| 305 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 304 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 306 }; | 305 }; |
| 307 | 306 |
| 308 } // namespace browser_sync | 307 } // namespace browser_sync |
| 309 | 308 |
| 310 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 309 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |