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