| 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/directory_update_handler.h" |
| 8 #include "sync/engine/get_updates_processor.h" | 8 #include "sync/engine/get_updates_processor.h" |
| 9 #include "sync/internal_api/public/events/configure_get_updates_request_event.h" | 9 #include "sync/internal_api/public/events/configure_get_updates_request_event.h" |
| 10 #include "sync/internal_api/public/events/normal_get_updates_request_event.h" | 10 #include "sync/internal_api/public/events/normal_get_updates_request_event.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 switch (source) { | 129 switch (source) { |
| 130 // Configurations: | 130 // Configurations: |
| 131 case sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE: | 131 case sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE: |
| 132 return sync_pb::SyncEnums::NEWLY_SUPPORTED_DATATYPE; | 132 return sync_pb::SyncEnums::NEWLY_SUPPORTED_DATATYPE; |
| 133 case sync_pb::GetUpdatesCallerInfo::MIGRATION: | 133 case sync_pb::GetUpdatesCallerInfo::MIGRATION: |
| 134 return sync_pb::SyncEnums::MIGRATION; | 134 return sync_pb::SyncEnums::MIGRATION; |
| 135 case sync_pb::GetUpdatesCallerInfo::RECONFIGURATION: | 135 case sync_pb::GetUpdatesCallerInfo::RECONFIGURATION: |
| 136 return sync_pb::SyncEnums::RECONFIGURATION; | 136 return sync_pb::SyncEnums::RECONFIGURATION; |
| 137 case sync_pb::GetUpdatesCallerInfo::NEW_CLIENT: | 137 case sync_pb::GetUpdatesCallerInfo::NEW_CLIENT: |
| 138 return sync_pb::SyncEnums::NEW_CLIENT; | 138 return sync_pb::SyncEnums::NEW_CLIENT; |
| 139 case sync_pb::GetUpdatesCallerInfo::PROGRAMMATIC: |
| 140 return sync_pb::SyncEnums::PROGRAMMATIC; |
| 139 default: | 141 default: |
| 140 NOTREACHED(); | 142 NOTREACHED(); |
| 141 return sync_pb::SyncEnums::UNKNOWN_ORIGIN; | 143 return sync_pb::SyncEnums::UNKNOWN_ORIGIN; |
| 142 } | 144 } |
| 143 } | 145 } |
| 144 | 146 |
| 145 PollGetUpdatesDelegate::PollGetUpdatesDelegate() {} | 147 PollGetUpdatesDelegate::PollGetUpdatesDelegate() {} |
| 146 | 148 |
| 147 PollGetUpdatesDelegate::~PollGetUpdatesDelegate() {} | 149 PollGetUpdatesDelegate::~PollGetUpdatesDelegate() {} |
| 148 | 150 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 164 } | 166 } |
| 165 | 167 |
| 166 scoped_ptr<ProtocolEvent> PollGetUpdatesDelegate::GetNetworkRequestEvent( | 168 scoped_ptr<ProtocolEvent> PollGetUpdatesDelegate::GetNetworkRequestEvent( |
| 167 base::Time timestamp, | 169 base::Time timestamp, |
| 168 const sync_pb::ClientToServerMessage& request) const { | 170 const sync_pb::ClientToServerMessage& request) const { |
| 169 return scoped_ptr<ProtocolEvent>( | 171 return scoped_ptr<ProtocolEvent>( |
| 170 new PollGetUpdatesRequestEvent(timestamp, request)); | 172 new PollGetUpdatesRequestEvent(timestamp, request)); |
| 171 } | 173 } |
| 172 | 174 |
| 173 } // namespace syncer | 175 } // namespace syncer |
| OLD | NEW |