ozone: evdev: Dispatch events in task
[chromium-blink-merge.git] / extensions / common / error_utils.h
blobfedbd2887ba510a41caa393149c623fd43f52a09
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.
5 #ifndef EXTENSIONS_COMMON_ERROR_UTILS_H_
6 #define EXTENSIONS_COMMON_ERROR_UTILS_H_
8 #include <string>
10 #include "base/strings/string16.h"
12 namespace extensions {
14 class ErrorUtils {
15 public:
16 // Creates an error messages from a pattern.
17 static std::string FormatErrorMessage(const std::string& format,
18 const std::string& s1);
20 static std::string FormatErrorMessage(const std::string& format,
21 const std::string& s1,
22 const std::string& s2);
24 static std::string FormatErrorMessage(const std::string& format,
25 const std::string& s1,
26 const std::string& s2,
27 const std::string& s3);
29 static base::string16 FormatErrorMessageUTF16(const std::string& format,
30 const std::string& s1);
32 static base::string16 FormatErrorMessageUTF16(const std::string& format,
33 const std::string& s1,
34 const std::string& s2);
36 static base::string16 FormatErrorMessageUTF16(const std::string& format,
37 const std::string& s1,
38 const std::string& s2,
39 const std::string& s3);
42 } // namespace extensions
44 #endif // EXTENSIONS_COMMON_ERROR_UTILS_H_