| Index: components/crash/core/browser/crashes_ui_util.h
|
| diff --git a/components/crash/core/browser/crashes_ui_util.h b/components/crash/core/browser/crashes_ui_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d24f0096fb8f5f29b1834e3fc90aceab0f504706
|
| --- /dev/null
|
| +++ b/components/crash/core/browser/crashes_ui_util.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2015 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 COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_
|
| +#define COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_
|
| +
|
| +#include <stddef.h>
|
| +
|
| +namespace base {
|
| +class ListValue;
|
| +}
|
| +
|
| +class UploadList;
|
| +
|
| +namespace crash {
|
| +
|
| +// Mapping between a WebUI resource (identified by |name|) and a GRIT resource
|
| +// (identified by |resource_id|).
|
| +struct CrashesUILocalizedString {
|
| + const char* name;
|
| + int resource_id;
|
| +};
|
| +
|
| +// List of localized strings that must be added to the WebUI.
|
| +extern const CrashesUILocalizedString kCrashesUILocalizedStrings[];
|
| +extern const size_t kCrashesUILocalizedStringsCount;
|
| +
|
| +// Strings used by the WebUI resources.
|
| +// Must match the constants used in the resource files.
|
| +extern const char kCrashesUICrashesJS[];
|
| +extern const char kCrashesUIRequestCrashList[];
|
| +extern const char kCrashesUIRequestCrashUpload[];
|
| +extern const char kCrashesUIShortProductName[];
|
| +extern const char kCrashesUIUpdateCrashList[];
|
| +
|
| +// Converts and appends the most recent uploads to |out_value|.
|
| +void UploadListToValue(UploadList* upload_list, base::ListValue* out_value);
|
| +
|
| +} // namespace crash
|
| +
|
| +#endif // COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_
|
|
|