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

Side by Side Diff: sync/engine/syncer.h

Issue 171813013: sync: Merge GU retry logic into normal GU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_ENGINE_SYNCER_H_ 5 #ifndef SYNC_ENGINE_SYNCER_H_
6 #define SYNC_ENGINE_SYNCER_H_ 6 #define SYNC_ENGINE_SYNCER_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ModelTypeSet request_types, 60 ModelTypeSet request_types,
61 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source, 61 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
62 sessions::SyncSession* session); 62 sessions::SyncSession* session);
63 63
64 // Requests to download updates for the |request_types|. For a well-behaved 64 // Requests to download updates for the |request_types|. For a well-behaved
65 // client with a working connection to the invalidations server, this should 65 // client with a working connection to the invalidations server, this should
66 // be unnecessary. It may be invoked periodically to try to keep the client 66 // be unnecessary. It may be invoked periodically to try to keep the client
67 // in sync despite bugs or transient failures. 67 // in sync despite bugs or transient failures.
68 virtual bool PollSyncShare(ModelTypeSet request_types, 68 virtual bool PollSyncShare(ModelTypeSet request_types,
69 sessions::SyncSession* session); 69 sessions::SyncSession* session);
70 virtual bool RetrySyncShare(ModelTypeSet request_types,
71 sessions::SyncSession* session);
72 70
73 private: 71 private:
74 bool DownloadAndApplyUpdates( 72 bool DownloadAndApplyUpdates(
75 ModelTypeSet request_types, 73 ModelTypeSet request_types,
76 sessions::SyncSession* session, 74 sessions::SyncSession* session,
77 GetUpdatesProcessor* get_updates_processor, 75 GetUpdatesProcessor* get_updates_processor,
78 bool create_mobile_bookmarks_folder); 76 bool create_mobile_bookmarks_folder);
79 77
80 // This function will commit batches of unsynced items to the server until the 78 // This function will commit batches of unsynced items to the server until the
81 // number of unsynced and ready to commit items reaches zero or an error is 79 // number of unsynced and ready to commit items reaches zero or an error is
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 FRIEND_TEST_ALL_PREFIXES(SyncerTest, DeletingEntryWithLocalEdits); 112 FRIEND_TEST_ALL_PREFIXES(SyncerTest, DeletingEntryWithLocalEdits);
115 FRIEND_TEST_ALL_PREFIXES(EntryCreatedInNewFolderTest, 113 FRIEND_TEST_ALL_PREFIXES(EntryCreatedInNewFolderTest,
116 EntryCreatedInNewFolderMidSync); 114 EntryCreatedInNewFolderMidSync);
117 115
118 DISALLOW_COPY_AND_ASSIGN(Syncer); 116 DISALLOW_COPY_AND_ASSIGN(Syncer);
119 }; 117 };
120 118
121 } // namespace syncer 119 } // namespace syncer
122 120
123 #endif // SYNC_ENGINE_SYNCER_H_ 121 #endif // SYNC_ENGINE_SYNCER_H_
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698