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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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