| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void OnCryptographerStateChanged( | 118 virtual void OnCryptographerStateChanged( |
| 119 syncer::Cryptographer* cryptographer) OVERRIDE; | 119 syncer::Cryptographer* cryptographer) OVERRIDE; |
| 120 virtual void OnPassphraseTypeChanged(syncer::PassphraseType type, | 120 virtual void OnPassphraseTypeChanged(syncer::PassphraseType type, |
| 121 base::Time passphrase_time) OVERRIDE; | 121 base::Time passphrase_time) OVERRIDE; |
| 122 | 122 |
| 123 // Forwards an invalidation state change to the sync manager. | 123 // Forwards an invalidation state change to the sync manager. |
| 124 void DoOnInvalidatorStateChange(syncer::InvalidatorState state); | 124 void DoOnInvalidatorStateChange(syncer::InvalidatorState state); |
| 125 | 125 |
| 126 // Forwards an invalidation to the sync manager. | 126 // Forwards an invalidation to the sync manager. |
| 127 void DoOnIncomingInvalidation( | 127 void DoOnIncomingInvalidation( |
| 128 syncer::ObjectIdInvalidationMap invalidation_map); | 128 const syncer::ObjectIdInvalidationMap& invalidation_map); |
| 129 | 129 |
| 130 // Note: | 130 // Note: |
| 131 // | 131 // |
| 132 // The Do* methods are the various entry points from our | 132 // The Do* methods are the various entry points from our |
| 133 // SyncBackendHost. They are all called on the sync thread to | 133 // SyncBackendHost. They are all called on the sync thread to |
| 134 // actually perform synchronous (and potentially blocking) syncapi | 134 // actually perform synchronous (and potentially blocking) syncapi |
| 135 // operations. | 135 // operations. |
| 136 // | 136 // |
| 137 // Called to perform initialization of the syncapi on behalf of | 137 // Called to perform initialization of the syncapi on behalf of |
| 138 // SyncBackendHost::Initialize. | 138 // SyncBackendHost::Initialize. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 const bool has_sync_setup_completed_; | 286 const bool has_sync_setup_completed_; |
| 287 | 287 |
| 288 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 288 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 289 | 289 |
| 290 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 290 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace browser_sync | 293 } // namespace browser_sync |
| 294 | 294 |
| 295 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 295 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |