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

Side by Side Diff: sync/engine/get_updates_delegate.cc

Issue 439903002: [Sync] Move reenable logic into DTM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dcheck Created 6 years, 4 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
« no previous file with comments | « components/sync_driver/data_type_manager_mock.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « components/sync_driver/data_type_manager_mock.h ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698