| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 96 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, InitialSyncRequest); |
| 96 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, ConfigureTest); | 97 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, ConfigureTest); |
| 97 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, PollTest); | 98 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, PollTest); |
| 98 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, RetryTest); | 99 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, RetryTest); |
| 99 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, NudgeWithRetryTest); | 100 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, NudgeWithRetryTest); |
| 100 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, InvalidResponse); | 101 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, InvalidResponse); |
| 101 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, MoreToDownloadResponse); | 102 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, MoreToDownloadResponse); |
| 102 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, NormalResponseTest); | 103 FRIEND_TEST_ALL_PREFIXES(GetUpdatesProcessorTest, NormalResponseTest); |
| 103 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesDebugInfoTest, | 104 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesDebugInfoTest, |
| 104 VerifyCopyClientDebugInfo_Empty); | 105 VerifyCopyClientDebugInfo_Empty); |
| 105 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites); | 106 FRIEND_TEST_ALL_PREFIXES(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites); |
| 106 | 107 |
| 107 // A map of 'update handlers', one for each enabled type. | 108 // A map of 'update handlers', one for each enabled type. |
| 108 // This must be kept in sync with the routing info. Our temporary solution to | 109 // This must be kept in sync with the routing info. Our temporary solution to |
| 109 // that problem is to initialize this map in set_routing_info(). | 110 // that problem is to initialize this map in set_routing_info(). |
| 110 UpdateHandlerMap* update_handler_map_; | 111 UpdateHandlerMap* update_handler_map_; |
| 111 | 112 |
| 112 const GetUpdatesDelegate& delegate_; | 113 const GetUpdatesDelegate& delegate_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessor); | 115 DISALLOW_COPY_AND_ASSIGN(GetUpdatesProcessor); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace syncer | 118 } // namespace syncer |
| 118 | 119 |
| 119 #endif // SYNC_ENGINE_GET_UPDATES_PROCESSOR_H_ | 120 #endif // SYNC_ENGINE_GET_UPDATES_PROCESSOR_H_ |
| OLD | NEW |