OLD | NEW |
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 EXTENSIONS_COMMON_ERROR_UTILS_H_ | 5 #ifndef EXTENSIONS_COMMON_ERROR_UTILS_H_ |
6 #define EXTENSIONS_COMMON_ERROR_UTILS_H_ | 6 #define EXTENSIONS_COMMON_ERROR_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/strings/string16.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 class ErrorUtils { | 14 class ErrorUtils { |
15 public: | 15 public: |
16 // Creates an error messages from a pattern. | 16 // Creates an error messages from a pattern. |
17 static std::string FormatErrorMessage(const std::string& format, | 17 static std::string FormatErrorMessage(const std::string& format, |
18 const std::string& s1); | 18 const std::string& s1); |
19 | 19 |
20 static std::string FormatErrorMessage(const std::string& format, | 20 static std::string FormatErrorMessage(const std::string& format, |
(...skipping 14 matching lines...) Expand all Loading... |
35 | 35 |
36 static string16 FormatErrorMessageUTF16(const std::string& format, | 36 static string16 FormatErrorMessageUTF16(const std::string& format, |
37 const std::string& s1, | 37 const std::string& s1, |
38 const std::string& s2, | 38 const std::string& s2, |
39 const std::string& s3); | 39 const std::string& s3); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace extensions | 42 } // namespace extensions |
43 | 43 |
44 #endif // EXTENSIONS_COMMON_ERROR_UTILS_H_ | 44 #endif // EXTENSIONS_COMMON_ERROR_UTILS_H_ |
OLD | NEW |