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

Side by Side Diff: components/sync/base/hash_util.h

Issue 2502253003: [Sync] Move GenerateSyncableHash to base. (Closed)
Patch Set: Keep full syncable/ DEP. Created 4 years, 1 month 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
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/base/hash_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
(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_
OLDNEW
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/base/hash_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698