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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 syncer::PassphraseType type, | 237 syncer::PassphraseType type, |
238 base::Time explicit_passphrase_time); | 238 base::Time explicit_passphrase_time); |
239 | 239 |
240 void HandleStopSyncingPermanentlyOnFrontendLoop(); | 240 void HandleStopSyncingPermanentlyOnFrontendLoop(); |
241 | 241 |
242 // Dispatched to from OnConnectionStatusChange to handle updating | 242 // Dispatched to from OnConnectionStatusChange to handle updating |
243 // frontend UI components. | 243 // frontend UI components. |
244 void HandleConnectionStatusChangeOnFrontendLoop( | 244 void HandleConnectionStatusChangeOnFrontendLoop( |
245 syncer::ConnectionStatus status); | 245 syncer::ConnectionStatus status); |
246 | 246 |
247 // syncer::InvalidationHandler-like functions. | |
248 void HandleInvalidatorStateChangeOnFrontendLoop( | |
249 syncer::InvalidatorState state); | |
250 void HandleIncomingInvalidationOnFrontendLoop( | |
251 const syncer::ObjectIdInvalidationMap& invalidation_map); | |
252 | |
253 // NotificationObserver implementation. | 247 // NotificationObserver implementation. |
254 virtual void Observe( | 248 virtual void Observe( |
255 int type, | 249 int type, |
256 const content::NotificationSource& source, | 250 const content::NotificationSource& source, |
257 const content::NotificationDetails& details) OVERRIDE; | 251 const content::NotificationDetails& details) OVERRIDE; |
258 | 252 |
259 // InvalidationHandler implementation. | 253 // InvalidationHandler implementation. |
260 virtual void OnInvalidatorStateChange( | 254 virtual void OnInvalidatorStateChange( |
261 syncer::InvalidatorState state) OVERRIDE; | 255 syncer::InvalidatorState state) OVERRIDE; |
262 virtual void OnIncomingInvalidation( | 256 virtual void OnIncomingInvalidation( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 | 311 |
318 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 312 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
319 | 313 |
320 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 314 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
321 }; | 315 }; |
322 | 316 |
323 } // namespace browser_sync | 317 } // namespace browser_sync |
324 | 318 |
325 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 319 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
326 | 320 |
OLD | NEW |