diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-19 21:52:31 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-19 21:52:31 +0000 |
commit | e9f541ab939ab67b0b4c90f362001201fe0804ad (patch) | |
tree | f7015983be2f8a8ae737a336aee458f3d53a614a /extensions/common/error_utils.h | |
parent | 65431cb6800bf5ac61e4a2aacc52e5e6c4d39469 (diff) | |
download | chromium_src-e9f541ab939ab67b0b4c90f362001201fe0804ad.zip chromium_src-e9f541ab939ab67b0b4c90f362001201fe0804ad.tar.gz chromium_src-e9f541ab939ab67b0b4c90f362001201fe0804ad.tar.bz2 |
Move extension_error_utils.* and url_pattern_set.* into
top-level extensions dir.
BUG=159265
TBR=ben@chromium.org
NOTRY=true
Review URL: https://codereview.chromium.org/11312228
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/error_utils.h')
-rw-r--r-- | extensions/common/error_utils.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/extensions/common/error_utils.h b/extensions/common/error_utils.h new file mode 100644 index 0000000..f63f4da --- /dev/null +++ b/extensions/common/error_utils.h @@ -0,0 +1,44 @@ +// 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. + +#ifndef EXTENSIONS_COMMON_ERROR_UTILS_H_ +#define EXTENSIONS_COMMON_ERROR_UTILS_H_ + +#include <string> + +#include "base/string16.h" + +namespace extensions { + +class ErrorUtils { + public: + // Creates an error messages from a pattern. + static std::string FormatErrorMessage(const std::string& format, + const std::string& s1); + + static std::string FormatErrorMessage(const std::string& format, + const std::string& s1, + const std::string& s2); + + static std::string FormatErrorMessage(const std::string& format, + const std::string& s1, + const std::string& s2, + const std::string& s3); + + static string16 FormatErrorMessageUTF16(const std::string& format, + const std::string& s1); + + static string16 FormatErrorMessageUTF16(const std::string& format, + const std::string& s1, + const std::string& s2); + + static string16 FormatErrorMessageUTF16(const std::string& format, + const std::string& s1, + const std::string& s2, + const std::string& s3); +}; + +} // namespace extensions + +#endif // EXTENSIONS_COMMON_ERROR_UTILS_H_ |