| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SYNC_BASE_HASH_UTIL_H_ |
| 6 #define COMPONENTS_SYNC_BASE_HASH_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "components/sync/base/model_type.h" |
| 11 |
| 12 namespace syncer { |
| 13 |
| 14 // Generates a fixed-length tag for the given string under the given model_type. |
| 15 std::string GenerateSyncableHash(ModelType model_type, |
| 16 const std::string& client_tag); |
| 17 |
| 18 // A helper for generating the bookmark type's tag. This is required in more |
| 19 // than one place, so we define the algorithm here to make sure the |
| 20 // implementation is consistent. |
| 21 std::string GenerateSyncableBookmarkHash( |
| 22 const std::string& originator_cache_guid, |
| 23 const std::string& originator_client_item_id); |
| 24 |
| 25 } // namespace syncer |
| 26 |
| 27 #endif // COMPONENTS_SYNC_BASE_HASH_UTIL_H_ |
| OLD | NEW |