| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 invalidation::ObjectId* object_id); | 21 invalidation::ObjectId* object_id); |
| 22 | 22 |
| 23 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id, | 23 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id, |
| 24 syncable::ModelType* model_type); | 24 syncable::ModelType* model_type); |
| 25 | 25 |
| 26 // We need to write our own protobuf-to-string functions because we | 26 // We need to write our own protobuf-to-string functions because we |
| 27 // use LITE_RUNTIME, which doesn't support DebugString(). | 27 // use LITE_RUNTIME, which doesn't support DebugString(). |
| 28 | 28 |
| 29 std::string ObjectIdToString(const invalidation::ObjectId& object_id); | 29 std::string ObjectIdToString(const invalidation::ObjectId& object_id); |
| 30 | 30 |
| 31 std::string ObjectIdPToString(const invalidation::ObjectIdP& object_id); |
| 32 |
| 31 std::string StatusToString(const invalidation::Status& status); | 33 std::string StatusToString(const invalidation::Status& status); |
| 32 | 34 |
| 33 std::string InvalidationToString( | 35 std::string InvalidationToString( |
| 34 const invalidation::Invalidation& invalidation); | 36 const invalidation::Invalidation& invalidation); |
| 35 | 37 |
| 36 std::string RegistrationUpdateToString( | 38 std::string RegistrationUpdateToString( |
| 37 const invalidation::RegistrationUpdate& update); | 39 const invalidation::RegistrationUpdate& update); |
| 38 | 40 |
| 39 std::string RegistrationUpdateResultToString( | 41 std::string RegistrationUpdateResultToString( |
| 40 const invalidation::RegistrationUpdateResult& update_result); | 42 const invalidation::RegistrationUpdateResult& update_result); |
| 41 | 43 |
| 42 } // namespace sync_notifier | 44 } // namespace sync_notifier |
| 43 | 45 |
| 44 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ | 46 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ |
| OLD | NEW |