OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/bookmarks/bookmark_codec.h" | 5 #include "chrome/browser/bookmarks/bookmark_codec.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/string_util.h" | 8 #include "base/string_util.h" |
8 #include "base/values.h" | 9 #include "base/values.h" |
9 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
10 #include "chrome/common/l10n_util.h" | |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 | 13 |
14 using base::Time; | 14 using base::Time; |
15 | 15 |
16 UniqueIDGenerator::UniqueIDGenerator() { | 16 UniqueIDGenerator::UniqueIDGenerator() { |
17 Reset(); | 17 Reset(); |
18 } | 18 } |
19 | 19 |
20 int UniqueIDGenerator::GetUniqueID(int id) { | 20 int UniqueIDGenerator::GetUniqueID(int id) { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 void BookmarkCodec::InitializeChecksum() { | 307 void BookmarkCodec::InitializeChecksum() { |
308 MD5Init(&md5_context_); | 308 MD5Init(&md5_context_); |
309 } | 309 } |
310 | 310 |
311 void BookmarkCodec::FinalizeChecksum() { | 311 void BookmarkCodec::FinalizeChecksum() { |
312 MD5Digest digest; | 312 MD5Digest digest; |
313 MD5Final(&digest, &md5_context_); | 313 MD5Final(&digest, &md5_context_); |
314 computed_checksum_ = MD5DigestToBase16(digest); | 314 computed_checksum_ = MD5DigestToBase16(digest); |
315 } | 315 } |
316 | |
OLD | NEW |