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 namespace base { |
| 9 class ListValue; |
| 10 } |
| 11 |
| 12 class UploadList; |
| 13 |
| 14 namespace crash { |
| 15 |
| 16 // Strings used by the WebUI resources. |
| 17 // Must match the constants used in the resource files. |
| 18 extern const char kCrashesUIBugLinkText[]; |
| 19 extern const char kCrashesUICrashCountFormat[]; |
| 20 extern const char kCrashesUICrashHeaderFormat[]; |
| 21 extern const char kCrashesUICrashTimeFormat[]; |
| 22 extern const char kCrashesUICrashesJS[]; |
| 23 extern const char kCrashesUICrashesTitle[]; |
| 24 extern const char kCrashesUIDisabledHeader[]; |
| 25 extern const char kCrashesUIDisabledMessage[]; |
| 26 extern const char kCrashesUINoCrashesMessage[]; |
| 27 extern const char kCrashesUIRequestCrashList[]; |
| 28 extern const char kCrashesUIRequestCrashUpload[]; |
| 29 extern const char kCrashesUIShortProductName[]; |
| 30 extern const char kCrashesUIUpdateCrashList[]; |
| 31 extern const char kCrashesUIUploadCrashesLinkText[]; |
| 32 |
| 33 // Converts and appends the most recent uploads to |out_value|. |
| 34 void UploadListToValue(UploadList* upload_list, base::ListValue* out_value); |
| 35 |
| 36 } // namespace crash |
| 37 |
| 38 #endif // COMPONENTS_CRASH_CORE_BROWSER_CRASHES_UI_UTIL_H_ |
OLD | NEW |