Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Side by Side Diff: sync/internal_api/sync_manager_impl.h

Issue 12022041: Separate local and remote sync invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698