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

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

Issue 232003005: [Sync] Add support for retrying a getupdates due to a context change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GET_UPDATES_PROCESSOR_H 5 #ifndef SYNC_ENGINE_GET_UPDATES_PROCESSOR_H
6 #define SYNC_ENGINE_GET_UPDATES_PROCESSOR_H 6 #define SYNC_ENGINE_GET_UPDATES_PROCESSOR_H
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 sessions::SyncSession* session, 75 sessions::SyncSession* session,
76 sync_pb::ClientToServerMessage* msg); 76 sync_pb::ClientToServerMessage* msg);
77 77
78 // Helper function for processing responses from the server. Defined here for 78 // Helper function for processing responses from the server. Defined here for
79 // testing. 79 // testing.
80 SyncerError ProcessResponse(const sync_pb::GetUpdatesResponse& gu_response, 80 SyncerError ProcessResponse(const sync_pb::GetUpdatesResponse& gu_response,
81 ModelTypeSet proto_request_types, 81 ModelTypeSet proto_request_types,
82 sessions::StatusController* status); 82 sessions::StatusController* status);
83 83
84 // Processes a GetUpdates responses for each type. 84 // Processes a GetUpdates responses for each type.
85 bool ProcessGetUpdatesResponse( 85 syncer::SyncerError ProcessGetUpdatesResponse(
86 ModelTypeSet gu_types, 86 ModelTypeSet gu_types,
87 const sync_pb::GetUpdatesResponse& gu_response, 87 const sync_pb::GetUpdatesResponse& gu_response,
88 sessions::StatusController* status_controller); 88 sessions::StatusController* status_controller);
89 89
90 static void CopyClientDebugInfo( 90 static void CopyClientDebugInfo(
91 sessions::DebugInfoGetter* debug_info_getter, 91 sessions::DebugInfoGetter* debug_info_getter,
92 sync_pb::DebugInfo* debug_info); 92 sync_pb::DebugInfo* debug_info);
93 93
94 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, BookmarkNudge); 94 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, BookmarkNudge);
95 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, NotifyMany); 95 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, NotifyMany);
(...skipping 14 matching lines...) Expand all
110 UpdateHandlerMap* update_handler_map_; 110 UpdateHandlerMap* update_handler_map_;
111 111
112 const GetUpdatesDelegate& delegate_; 112 const GetUpdatesDelegate& delegate_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessor); 114 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessor);
115 }; 115 };
116 116
117 } // namespace syncer 117 } // namespace syncer
118 118
119 #endif // SYNC_ENGINE_GET_UPDATES_PROCESSOR_H_ 119 #endif // SYNC_ENGINE_GET_UPDATES_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698