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

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: Rebase 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698