| 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 #include "sync/engine/get_updates_delegate.h" | 5 #include "sync/engine/get_updates_delegate.h" |
| 6 | 6 |
| 7 #include "sync/engine/directory_update_handler.h" |
| 7 #include "sync/engine/get_updates_processor.h" | 8 #include "sync/engine/get_updates_processor.h" |
| 8 #include "sync/engine/sync_directory_update_handler.h" | |
| 9 | 9 |
| 10 namespace syncer { | 10 namespace syncer { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 void NonPassiveApplyUpdates( | 14 void NonPassiveApplyUpdates( |
| 15 sessions::StatusController* status_controller, | 15 sessions::StatusController* status_controller, |
| 16 UpdateHandlerMap* update_handler_map) { | 16 UpdateHandlerMap* update_handler_map) { |
| 17 for (UpdateHandlerMap::iterator it = update_handler_map->begin(); | 17 for (UpdateHandlerMap::iterator it = update_handler_map->begin(); |
| 18 it != update_handler_map->end(); ++it) { | 18 it != update_handler_map->end(); ++it) { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 get_updates->set_get_updates_origin(sync_pb::SyncEnums::PERIODIC); | 146 get_updates->set_get_updates_origin(sync_pb::SyncEnums::PERIODIC); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void PollGetUpdatesDelegate::ApplyUpdates( | 149 void PollGetUpdatesDelegate::ApplyUpdates( |
| 150 sessions::StatusController* status_controller, | 150 sessions::StatusController* status_controller, |
| 151 UpdateHandlerMap* update_handler_map) const { | 151 UpdateHandlerMap* update_handler_map) const { |
| 152 NonPassiveApplyUpdates(status_controller, update_handler_map); | 152 NonPassiveApplyUpdates(status_controller, update_handler_map); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace syncer | 155 } // namespace syncer |
| OLD | NEW |