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

Side by Side Diff: base/md5.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « base/mach_ipc_mac.h ('k') | base/memory/aligned_memory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_MD5_H_ 5 #ifndef BASE_MD5_H_
6 #define BASE_MD5_H_ 6 #define BASE_MD5_H_
7 #pragma once
8 7
9 #include "base/base_export.h" 8 #include "base/base_export.h"
10 #include "base/string_piece.h" 9 #include "base/string_piece.h"
11 10
12 namespace base { 11 namespace base {
13 12
14 // MD5 stands for Message Digest algorithm 5. 13 // MD5 stands for Message Digest algorithm 5.
15 // MD5 is a robust hash function, designed for cyptography, but often used 14 // MD5 is a robust hash function, designed for cyptography, but often used
16 // for file checksums. The code is complex and slow, but has few 15 // for file checksums. The code is complex and slow, but has few
17 // collisions. 16 // collisions.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 60
62 // Converts a digest into human-readable hexadecimal. 61 // Converts a digest into human-readable hexadecimal.
63 BASE_EXPORT std::string MD5DigestToBase16(const MD5Digest& digest); 62 BASE_EXPORT std::string MD5DigestToBase16(const MD5Digest& digest);
64 63
65 // Returns the MD5 (in hexadecimal) of a string. 64 // Returns the MD5 (in hexadecimal) of a string.
66 BASE_EXPORT std::string MD5String(const StringPiece& str); 65 BASE_EXPORT std::string MD5String(const StringPiece& str);
67 66
68 } // namespace base 67 } // namespace base
69 68
70 #endif // BASE_MD5_H_ 69 #endif // BASE_MD5_H_
OLDNEW
« no previous file with comments | « base/mach_ipc_mac.h ('k') | base/memory/aligned_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698