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); |
154 | 155 |
155 // Called to set the passphrase for encryption. | 156 // Called to set the passphrase for encryption. |
156 void DoSetEncryptionPassphrase(const std::string& passphrase, | 157 void DoSetEncryptionPassphrase(const std::string& passphrase, |
157 bool is_explicit); | 158 bool is_explicit); |
158 | 159 |
159 // Called to decrypt the pending keys. | 160 // Called to decrypt the pending keys. |
160 void DoSetDecryptionPassphrase(const std::string& passphrase); | 161 void DoSetDecryptionPassphrase(const std::string& passphrase); |
161 | 162 |
162 // Called to turn on encryption of all sync data as well as | 163 // Called to turn on encryption of all sync data as well as |
163 // reencrypt everything. | 164 // reencrypt everything. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 bool forward_type_info_; | 301 bool forward_type_info_; |
301 | 302 |
302 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 303 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
303 | 304 |
304 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 305 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
305 }; | 306 }; |
306 | 307 |
307 } // namespace browser_sync | 308 } // namespace browser_sync |
308 | 309 |
309 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 310 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
OLD | NEW |