| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |