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

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

Issue 10905045: [Sync] Pass ModelTypeSet by value everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 3 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/test/fake_sync_manager.cc ('k') | sync/notifier/invalidation_util.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 // 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 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Caller owns the returned DictionaryValue. 46 // Caller owns the returned DictionaryValue.
47 scoped_ptr<base::DictionaryValue> ObjectIdToValue( 47 scoped_ptr<base::DictionaryValue> ObjectIdToValue(
48 const invalidation::ObjectId& object_id); 48 const invalidation::ObjectId& object_id);
49 49
50 bool ObjectIdFromValue(const base::DictionaryValue& value, 50 bool ObjectIdFromValue(const base::DictionaryValue& value,
51 invalidation::ObjectId* out); 51 invalidation::ObjectId* out);
52 52
53 std::string ObjectIdToString(const invalidation::ObjectId& object_id); 53 std::string ObjectIdToString(const invalidation::ObjectId& object_id);
54 54
55 ObjectIdSet ModelTypeSetToObjectIdSet(const ModelTypeSet& models); 55 ObjectIdSet ModelTypeSetToObjectIdSet(ModelTypeSet models);
56 ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids); 56 ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids);
57 57
58 std::string InvalidationToString( 58 std::string InvalidationToString(
59 const invalidation::Invalidation& invalidation); 59 const invalidation::Invalidation& invalidation);
60 60
61 } // namespace syncer 61 } // namespace syncer
62 62
63 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 63 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_
OLDNEW
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/invalidation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698