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

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: 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
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..3d95b7ad943bdb07f0b319c1e9ca6739029cbebb
--- /dev/null
+++ b/components/crash/core/browser/crashes_ui_util.h
@@ -0,0 +1,38 @@
+// 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_
+
+namespace base {
+class ListValue;
+}
+
+class UploadList;
+
+namespace crash {
+
+// Strings used by the WebUI resources.
+// Must match the constants used in the resource files.
+extern const char kCrashesUIBugLinkText[];
+extern const char kCrashesUICrashCountFormat[];
+extern const char kCrashesUICrashHeaderFormat[];
+extern const char kCrashesUICrashTimeFormat[];
+extern const char kCrashesUICrashesJS[];
+extern const char kCrashesUICrashesTitle[];
+extern const char kCrashesUIDisabledHeader[];
+extern const char kCrashesUIDisabledMessage[];
+extern const char kCrashesUINoCrashesMessage[];
+extern const char kCrashesUIRequestCrashList[];
+extern const char kCrashesUIRequestCrashUpload[];
+extern const char kCrashesUIShortProductName[];
+extern const char kCrashesUIUpdateCrashList[];
+extern const char kCrashesUIUploadCrashesLinkText[];
+
+// 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_

Powered by Google App Engine
This is Rietveld 408576698