Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: extensions/common/error_utils.h

Issue 11312228: Move extension_error_utils.* and url_pattern_set.* into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/DEPS ('k') | extensions/common/error_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ 5 #ifndef EXTENSIONS_COMMON_ERROR_UTILS_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_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/string16.h"
11 11
12 class ExtensionErrorUtils { 12 namespace extensions {
13
14 class ErrorUtils {
13 public: 15 public:
14 // Creates an error messages from a pattern. 16 // Creates an error messages from a pattern.
15 static std::string FormatErrorMessage(const std::string& format, 17 static std::string FormatErrorMessage(const std::string& format,
16 const std::string& s1); 18 const std::string& s1);
17 19
18 static std::string FormatErrorMessage(const std::string& format, 20 static std::string FormatErrorMessage(const std::string& format,
19 const std::string& s1, 21 const std::string& s1,
20 const std::string& s2); 22 const std::string& s2);
21 23
22 static std::string FormatErrorMessage(const std::string& format, 24 static std::string FormatErrorMessage(const std::string& format,
23 const std::string& s1, 25 const std::string& s1,
24 const std::string& s2, 26 const std::string& s2,
25 const std::string& s3); 27 const std::string& s3);
26 28
27 static string16 FormatErrorMessageUTF16(const std::string& format, 29 static string16 FormatErrorMessageUTF16(const std::string& format,
28 const std::string& s1); 30 const std::string& s1);
29 31
30 static string16 FormatErrorMessageUTF16(const std::string& format, 32 static string16 FormatErrorMessageUTF16(const std::string& format,
31 const std::string& s1, 33 const std::string& s1,
32 const std::string& s2); 34 const std::string& s2);
33 35
34 static string16 FormatErrorMessageUTF16(const std::string& format, 36 static string16 FormatErrorMessageUTF16(const std::string& format,
35 const std::string& s1, 37 const std::string& s1,
36 const std::string& s2, 38 const std::string& s2,
37 const std::string& s3); 39 const std::string& s3);
38 }; 40 };
39 41
40 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_ 42 } // namespace extensions
43
44 #endif // EXTENSIONS_COMMON_ERROR_UTILS_H_
OLDNEW
« no previous file with comments | « extensions/DEPS ('k') | extensions/common/error_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698