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

Side by Side Diff: sync/internal_api/sync_manager_impl.cc

Issue 12114012: Remove syncer::IncomingInvalidationSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comment Created 7 years, 10 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 | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/internal_api/sync_manager_impl.h" 5 #include "sync/internal_api/sync_manager_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 DictionaryValue details; 1228 DictionaryValue details;
1229 details.SetString("state", state_str); 1229 details.SetString("state", state_str);
1230 js_event_handler_.Call(FROM_HERE, 1230 js_event_handler_.Call(FROM_HERE,
1231 &JsEventHandler::HandleJsEvent, 1231 &JsEventHandler::HandleJsEvent,
1232 "onNotificationStateChange", 1232 "onNotificationStateChange",
1233 JsEventDetails(&details)); 1233 JsEventDetails(&details));
1234 } 1234 }
1235 } 1235 }
1236 1236
1237 void SyncManagerImpl::OnIncomingInvalidation( 1237 void SyncManagerImpl::OnIncomingInvalidation(
1238 const ObjectIdInvalidationMap& invalidation_map, 1238 const ObjectIdInvalidationMap& invalidation_map) {
1239 IncomingInvalidationSource source) {
1240 DCHECK(thread_checker_.CalledOnValidThread()); 1239 DCHECK(thread_checker_.CalledOnValidThread());
1241 const ModelTypeInvalidationMap& type_invalidation_map = 1240 const ModelTypeInvalidationMap& type_invalidation_map =
1242 ObjectIdInvalidationMapToModelTypeInvalidationMap(invalidation_map); 1241 ObjectIdInvalidationMapToModelTypeInvalidationMap(invalidation_map);
1243 if (type_invalidation_map.empty()) { 1242 if (type_invalidation_map.empty()) {
1244 LOG(WARNING) << "Sync received invalidation without any type information."; 1243 LOG(WARNING) << "Sync received invalidation without any type information.";
1245 } else { 1244 } else {
1246 allstatus_.IncrementNudgeCounter(NUDGE_SOURCE_NOTIFICATION); 1245 allstatus_.IncrementNudgeCounter(NUDGE_SOURCE_NOTIFICATION);
1247 scheduler_->ScheduleNudgeWithStatesAsync( 1246 scheduler_->ScheduleNudgeWithStatesAsync(
1248 TimeDelta::FromMilliseconds(kSyncSchedulerDelayMsec), 1247 TimeDelta::FromMilliseconds(kSyncSchedulerDelayMsec),
1249 NUDGE_SOURCE_NOTIFICATION, 1248 NUDGE_SOURCE_NOTIFICATION,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 int SyncManagerImpl::GetDefaultNudgeDelay() { 1374 int SyncManagerImpl::GetDefaultNudgeDelay() {
1376 return kDefaultNudgeDelayMilliseconds; 1375 return kDefaultNudgeDelayMilliseconds;
1377 } 1376 }
1378 1377
1379 // static. 1378 // static.
1380 int SyncManagerImpl::GetPreferencesNudgeDelay() { 1379 int SyncManagerImpl::GetPreferencesNudgeDelay() {
1381 return kPreferencesNudgeDelayMilliseconds; 1380 return kPreferencesNudgeDelayMilliseconds;
1382 } 1381 }
1383 1382
1384 } // namespace syncer 1383 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698