OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/string16.h" | |
11 | |
12 class ExtensionErrorUtils { | |
13 public: | |
14 // Creates an error messages from a pattern. | |
15 static std::string FormatErrorMessage(const std::string& format, | |
16 const std::string& s1); | |
17 | |
18 static std::string FormatErrorMessage(const std::string& format, | |
19 const std::string& s1, | |
20 const std::string& s2); | |
21 | |
22 static std::string FormatErrorMessage(const std::string& format, | |
23 const std::string& s1, | |
24 const std::string& s2, | |
25 const std::string& s3); | |
26 | |
27 static string16 FormatErrorMessageUTF16(const std::string& format, | |
28 const std::string& s1); | |
29 | |
30 static string16 FormatErrorMessageUTF16(const std::string& format, | |
31 const std::string& s1, | |
32 const std::string& s2); | |
33 | |
34 static string16 FormatErrorMessageUTF16(const std::string& format, | |
35 const std::string& s1, | |
36 const std::string& s2, | |
37 const std::string& s3); | |
38 }; | |
39 | |
40 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ | |
OLD | NEW |