summaryrefslogtreecommitdiffstats
path: root/base/sha1.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 19:00:20 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 19:00:20 +0000
commitf5661ca939b76182990a5f2e75e0282cc4022546 (patch)
tree065709f6ae7b3e5c93db6043a43ef92d1059bb2b /base/sha1.h
parent669a674860fa52bb5ed97e056b3ecd60ea246e74 (diff)
downloadchromium_src-f5661ca939b76182990a5f2e75e0282cc4022546.zip
chromium_src-f5661ca939b76182990a5f2e75e0282cc4022546.tar.gz
chromium_src-f5661ca939b76182990a5f2e75e0282cc4022546.tar.bz2
Base: A few more files using BASE_API (for base.dll)
BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6729002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sha1.h')
-rw-r--r--base/sha1.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/base/sha1.h b/base/sha1.h
index 80540c1..7625189 100644
--- a/base/sha1.h
+++ b/base/sha1.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,8 @@
#include <string>
+#include "base/base_api.h"
+
namespace base {
// This function performs SHA-1 operations.
@@ -18,12 +20,12 @@ enum {
// Computes the SHA-1 hash of the input string |str| and returns the full
// hash.
-std::string SHA1HashString(const std::string& str);
+BASE_API std::string SHA1HashString(const std::string& str);
// Computes the SHA-1 hash of the |len| bytes in |data| and puts the hash
// in |hash|. |hash| must be SHA1_LENGTH bytes long.
-void SHA1HashBytes(const unsigned char* data, size_t len,
- unsigned char* hash);
+BASE_API void SHA1HashBytes(const unsigned char* data, size_t len,
+ unsigned char* hash);
} // namespace base