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

Side by Side Diff: sync/notifier/invalidation_util.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 // Various utilities for dealing with invalidation data types. 5 // Various utilities for dealing with invalidation data types.
6 6
7 #ifndef SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 7 #ifndef SYNC_NOTIFIER_INVALIDATION_UTIL_H_
8 #define SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 8 #define SYNC_NOTIFIER_INVALIDATION_UTIL_H_
9 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "sync/internal_api/public/syncable/model_type.h" 13 #include "sync/internal_api/public/syncable/model_type.h"
14 14
15 namespace invalidation { 15 namespace invalidation {
16 16
17 class Invalidation; 17 class Invalidation;
18 class ObjectId; 18 class ObjectId;
19 19
20 } // namespace invalidation 20 } // namespace invalidation
21 21
22 namespace csync { 22 namespace syncer {
23 23
24 struct ObjectIdLessThan { 24 struct ObjectIdLessThan {
25 bool operator()(const invalidation::ObjectId& lhs, 25 bool operator()(const invalidation::ObjectId& lhs,
26 const invalidation::ObjectId& rhs) const; 26 const invalidation::ObjectId& rhs) const;
27 }; 27 };
28 28
29 bool RealModelTypeToObjectId(syncable::ModelType model_type, 29 bool RealModelTypeToObjectId(syncable::ModelType model_type,
30 invalidation::ObjectId* object_id); 30 invalidation::ObjectId* object_id);
31 31
32 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id, 32 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id,
33 syncable::ModelType* model_type); 33 syncable::ModelType* model_type);
34 34
35 std::string ObjectIdToString(const invalidation::ObjectId& object_id); 35 std::string ObjectIdToString(const invalidation::ObjectId& object_id);
36 36
37 std::string InvalidationToString( 37 std::string InvalidationToString(
38 const invalidation::Invalidation& invalidation); 38 const invalidation::Invalidation& invalidation);
39 39
40 } // namespace csync 40 } // namespace syncer
41 41
42 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 42 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698