blob: 52d7efd6bc7f494137d807d57493377a18951062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
#define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
#pragma once
#include <string>
#include "base/string16.h"
class ExtensionErrorUtils {
public:
// Creates an error messages from a pattern.
static std::string FormatErrorMessage(const std::string& format,
const std::string& s1);
static std::string FormatErrorMessage(const std::string& format,
const std::string& s1,
const std::string& s2);
static std::string FormatErrorMessage(const std::string& format,
const std::string& s1,
const std::string& s2,
const std::string& s3);
static string16 FormatErrorMessageUTF16(const std::string& format,
const std::string& s1);
static string16 FormatErrorMessageUTF16(const std::string& format,
const std::string& s1,
const std::string& s2);
static string16 FormatErrorMessageUTF16(const std::string& format,
const std::string& s1,
const std::string& s2,
const std::string& s3);
};
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_UTILS_H_
|