OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 #ifndef COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_ |
| 6 #define COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 namespace base { |
| 11 class ListValue; |
| 12 } |
| 13 |
| 14 class UploadList; |
| 15 |
| 16 namespace crash { |
| 17 |
| 18 // Mapping between a WebUI resource (identified by |name|) and a GRIT resource |
| 19 // (identified by |resource_id|). |
| 20 struct CrashesUILocalizedString { |
| 21 const char* name; |
| 22 int resource_id; |
| 23 }; |
| 24 |
| 25 // List of localized strings that must be added to the WebUI. |
| 26 extern const CrashesUILocalizedString kCrashesUILocalizedStrings[]; |
| 27 extern const size_t kCrashesUILocalizedStringsCount; |
| 28 |
| 29 // Strings used by the WebUI resources. |
| 30 // Must match the constants used in the resource files. |
| 31 extern const char kCrashesUICrashesJS[]; |
| 32 extern const char kCrashesUIRequestCrashList[]; |
| 33 extern const char kCrashesUIRequestCrashUpload[]; |
| 34 extern const char kCrashesUIShortProductName[]; |
| 35 extern const char kCrashesUIUpdateCrashList[]; |
| 36 |
| 37 // Converts and appends the most recent uploads to |out_value|. |
| 38 void UploadListToValue(UploadList* upload_list, base::ListValue* out_value); |
| 39 |
| 40 } // namespace crash |
| 41 |
| 42 #endif // COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_ |
OLD | NEW |