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

Side by Side Diff: chrome/browser/sync/notifier/registration_manager.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
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 "chrome/browser/sync/notifier/registration_manager.h" 5 #include "chrome/browser/sync/notifier/registration_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstddef> 8 #include <cstddef>
9 #include <string> 9 #include <string>
10 10
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "chrome/browser/sync/notifier/invalidation_util.h" 12 #include "chrome/browser/sync/notifier/invalidation_util.h"
13 #include "chrome/browser/sync/syncable/model_type.h"
14 #include "google/cacheinvalidation/include/invalidation-client.h" 13 #include "google/cacheinvalidation/include/invalidation-client.h"
15 #include "google/cacheinvalidation/include/types.h" 14 #include "google/cacheinvalidation/include/types.h"
15 #include "sync/syncable/model_type.h"
16 16
17 namespace sync_notifier { 17 namespace sync_notifier {
18 18
19 RegistrationManager::PendingRegistrationInfo::PendingRegistrationInfo() {} 19 RegistrationManager::PendingRegistrationInfo::PendingRegistrationInfo() {}
20 20
21 RegistrationManager::RegistrationStatus::RegistrationStatus() 21 RegistrationManager::RegistrationStatus::RegistrationStatus()
22 : model_type(syncable::UNSPECIFIED), 22 : model_type(syncable::UNSPECIFIED),
23 registration_manager(NULL), 23 registration_manager(NULL),
24 enabled(true), 24 enabled(true),
25 state(invalidation::InvalidationListener::UNREGISTERED) {} 25 state(invalidation::InvalidationListener::UNREGISTERED) {}
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 266 }
267 267
268 bool RegistrationManager::IsTypeRegistered( 268 bool RegistrationManager::IsTypeRegistered(
269 syncable::ModelType model_type) const { 269 syncable::ModelType model_type) const {
270 DCHECK(non_thread_safe_.CalledOnValidThread()); 270 DCHECK(non_thread_safe_.CalledOnValidThread());
271 return registration_statuses_[model_type].state == 271 return registration_statuses_[model_type].state ==
272 invalidation::InvalidationListener::REGISTERED; 272 invalidation::InvalidationListener::REGISTERED;
273 } 273 }
274 274
275 } // namespace sync_notifier 275 } // namespace sync_notifier
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/registration_manager.h ('k') | chrome/browser/sync/notifier/registration_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698