Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Side by Side Diff: components/crash/core/browser/crashes_ui_util.h

Issue 1389913002: Move crashes_ui resources and utils to //components/crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/crash/core/browser/DEPS ('k') | components/crash/core/browser/crashes_ui_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/crash/core/browser/DEPS ('k') | components/crash/core/browser/crashes_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698