| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 172 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 173 syncable::BaseTransaction* trans, | 173 syncable::BaseTransaction* trans, |
| 174 std::vector<int64>* entries_changed) OVERRIDE; | 174 std::vector<int64>* entries_changed) OVERRIDE; |
| 175 | 175 |
| 176 // InvalidationHandler implementation. | 176 // InvalidationHandler implementation. |
| 177 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; | 177 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; |
| 178 virtual void OnIncomingInvalidation( | 178 virtual void OnIncomingInvalidation( |
| 179 const ObjectIdInvalidationMap& invalidation_map, | 179 const ObjectIdInvalidationMap& invalidation_map, |
| 180 IncomingInvalidationSource source) OVERRIDE; | 180 IncomingInvalidationSource source) OVERRIDE; |
| 181 | 181 |
| 182 // Handle explicit requests to fetch updates for the given types. |
| 183 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; |
| 184 |
| 182 // These OnYYYChanged() methods are only called by our NetworkChangeNotifier. | 185 // These OnYYYChanged() methods are only called by our NetworkChangeNotifier. |
| 183 // Called when IP address of primary interface changes. | 186 // Called when IP address of primary interface changes. |
| 184 virtual void OnIPAddressChanged() OVERRIDE; | 187 virtual void OnIPAddressChanged() OVERRIDE; |
| 185 // Called when the connection type of the system has changed. | 188 // Called when the connection type of the system has changed. |
| 186 virtual void OnConnectionTypeChanged( | 189 virtual void OnConnectionTypeChanged( |
| 187 net::NetworkChangeNotifier::ConnectionType) OVERRIDE; | 190 net::NetworkChangeNotifier::ConnectionType) OVERRIDE; |
| 188 | 191 |
| 189 const SyncScheduler* scheduler() const; | 192 const SyncScheduler* scheduler() const; |
| 190 | 193 |
| 191 bool GetHasInvalidAuthTokenForTest() const; | 194 bool GetHasInvalidAuthTokenForTest() const; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // changing passphrases, and in general handles sync-specific interactions | 381 // changing passphrases, and in general handles sync-specific interactions |
| 379 // with the cryptographer. | 382 // with the cryptographer. |
| 380 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 383 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 381 | 384 |
| 382 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 385 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 383 }; | 386 }; |
| 384 | 387 |
| 385 } // namespace syncer | 388 } // namespace syncer |
| 386 | 389 |
| 387 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 390 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |