| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/string16.h" |
| 12 |
| 11 class ExtensionErrorUtils { | 13 class ExtensionErrorUtils { |
| 12 public: | 14 public: |
| 13 // Creates an error messages from a pattern. | 15 // Creates an error messages from a pattern. |
| 14 static std::string FormatErrorMessage(const std::string& format, | 16 static std::string FormatErrorMessage(const std::string& format, |
| 15 const std::string& s1); | 17 const std::string& s1); |
| 16 | 18 |
| 17 static std::string FormatErrorMessage(const std::string& format, | 19 static std::string FormatErrorMessage(const std::string& format, |
| 18 const std::string& s1, | 20 const std::string& s1, |
| 19 const std::string& s2); | 21 const std::string& s2); |
| 20 | 22 |
| 21 static std::string FormatErrorMessage(const std::string& format, | 23 static std::string FormatErrorMessage(const std::string& format, |
| 22 const std::string& s1, | 24 const std::string& s1, |
| 23 const std::string& s2, | 25 const std::string& s2, |
| 24 const std::string& s3); | 26 const std::string& s3); |
| 27 |
| 28 static string16 FormatErrorMessageUTF16(const std::string& format, |
| 29 const std::string& s1); |
| 30 |
| 31 static string16 FormatErrorMessageUTF16(const std::string& format, |
| 32 const std::string& s1, |
| 33 const std::string& s2); |
| 34 |
| 35 static string16 FormatErrorMessageUTF16(const std::string& format, |
| 36 const std::string& s1, |
| 37 const std::string& s2, |
| 38 const std::string& s3); |
| 25 }; | 39 }; |
| 26 | 40 |
| 27 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | 41 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ |
| OLD | NEW |