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

Unified Diff: content/renderer/manifest/manifest_debug_info.h

Issue 1932623003: DevTools: Introduce Page.getManifest remote debugging protocol method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser test updated Created 4 years, 8 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 | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/manifest/manifest_debug_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/manifest/manifest_debug_info.h
diff --git a/content/renderer/manifest/manifest_debug_info.h b/content/renderer/manifest/manifest_debug_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..b5ff700603fc6edceb1a12251218c1e89a836cf6
--- /dev/null
+++ b/content/renderer/manifest/manifest_debug_info.h
@@ -0,0 +1,38 @@
+// Copyright 2016 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 CONTENT_RENDERER_MANIFEST_MANIFEST_DEBUG_INFO_H_
+#define CONTENT_RENDERER_MANIFEST_MANIFEST_DEBUG_INFO_H_
+
+#include <string>
+#include <vector>
+
+namespace content {
+
+// ManifestDebugInfo contains debug information for the parsed manifest.
+// It is created upon parsing and is available along the Manifest itself
+// via ManifestManager. Parsing errors can be generic and critical, critical
+// errors result in parser failure.
+struct ManifestDebugInfo {
+ struct Error {
+ Error(const std::string& message, bool critical, int line, int column)
+ : message(message),
+ critical(critical),
+ line(line),
+ column(column) {}
+ std::string message;
+ bool critical;
+ int line;
+ int column;
+ };
+
+ ManifestDebugInfo();
+ ~ManifestDebugInfo();
+ std::vector<Error> errors;
+ std::string raw_data;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MANIFEST_MANIFEST_DEBUG_INFO_H_
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/manifest/manifest_debug_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698