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

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

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 // Various utilities for dealing with invalidation data types. 5 // Various utilities for dealing with invalidation data types.
6 6
7 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 7 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_
8 #define CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 8 #define CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_
9 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "chrome/browser/sync/syncable/model_type.h"
14 #include "google/cacheinvalidation/deps/callback.h" 13 #include "google/cacheinvalidation/deps/callback.h"
14 #include "sync/syncable/model_type.h"
15 15
16 namespace invalidation { 16 namespace invalidation {
17 17
18 class Invalidation; 18 class Invalidation;
19 class ObjectId; 19 class ObjectId;
20 20
21 } // namespace invalidation 21 } // namespace invalidation
22 22
23 namespace sync_notifier { 23 namespace sync_notifier {
24 24
25 void RunAndDeleteClosure(invalidation::Closure* task); 25 void RunAndDeleteClosure(invalidation::Closure* task);
26 26
27 bool RealModelTypeToObjectId(syncable::ModelType model_type, 27 bool RealModelTypeToObjectId(syncable::ModelType model_type,
28 invalidation::ObjectId* object_id); 28 invalidation::ObjectId* object_id);
29 29
30 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id, 30 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id,
31 syncable::ModelType* model_type); 31 syncable::ModelType* model_type);
32 32
33 std::string ObjectIdToString(const invalidation::ObjectId& object_id); 33 std::string ObjectIdToString(const invalidation::ObjectId& object_id);
34 34
35 std::string InvalidationToString( 35 std::string InvalidationToString(
36 const invalidation::Invalidation& invalidation); 36 const invalidation::Invalidation& invalidation);
37 37
38 } // namespace sync_notifier 38 } // namespace sync_notifier
39 39
40 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 40 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698