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

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

Issue 1132013004: [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full patch Created 5 years, 7 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 explicit SyncManagerImpl(const std::string& name); 67 explicit SyncManagerImpl(const std::string& name);
68 ~SyncManagerImpl() override; 68 ~SyncManagerImpl() override;
69 69
70 // SyncManager implementation. 70 // SyncManager implementation.
71 void Init(InitArgs* args) override; 71 void Init(InitArgs* args) override;
72 ModelTypeSet InitialSyncEndedTypes() override; 72 ModelTypeSet InitialSyncEndedTypes() override;
73 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 73 ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
74 ModelTypeSet types) override; 74 ModelTypeSet types) override;
75 bool PurgePartiallySyncedTypes() override; 75 bool PurgePartiallySyncedTypes() override;
76 void UpdateCredentials(const SyncCredentials& credentials) override; 76 void UpdateCredentials(const SyncCredentials& credentials) override;
77 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info) override; 77 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info,
78 base::Time last_poll_time) override;
78 void ConfigureSyncer(ConfigureReason reason, 79 void ConfigureSyncer(ConfigureReason reason,
79 ModelTypeSet to_download, 80 ModelTypeSet to_download,
80 ModelTypeSet to_purge, 81 ModelTypeSet to_purge,
81 ModelTypeSet to_journal, 82 ModelTypeSet to_journal,
82 ModelTypeSet to_unapply, 83 ModelTypeSet to_unapply,
83 const ModelSafeRoutingInfo& new_routing_info, 84 const ModelSafeRoutingInfo& new_routing_info,
84 const base::Closure& ready_task, 85 const base::Closure& ready_task,
85 const base::Closure& retry_task) override; 86 const base::Closure& retry_task) override;
86 void SetInvalidatorEnabled(bool invalidator_enabled) override; 87 void SetInvalidatorEnabled(bool invalidator_enabled) override;
87 void OnIncomingInvalidation( 88 void OnIncomingInvalidation(
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 338 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
338 339
339 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 340 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
340 341
341 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 342 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
342 }; 343 };
343 344
344 } // namespace syncer 345 } // namespace syncer
345 346
346 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 347 #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