blob: b5ff700603fc6edceb1a12251218c1e89a836cf6 [file] [log] [blame]
pfeldmand9e2f652016-04-29 20:58:101// Copyright 2016 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 CONTENT_RENDERER_MANIFEST_MANIFEST_DEBUG_INFO_H_
6#define CONTENT_RENDERER_MANIFEST_MANIFEST_DEBUG_INFO_H_
7
8#include <string>
9#include <vector>
10
11namespace content {
12
13// ManifestDebugInfo contains debug information for the parsed manifest.
14// It is created upon parsing and is available along the Manifest itself
15// via ManifestManager. Parsing errors can be generic and critical, critical
16// errors result in parser failure.
17struct ManifestDebugInfo {
18 struct Error {
19 Error(const std::string& message, bool critical, int line, int column)
20 : message(message),
21 critical(critical),
22 line(line),
23 column(column) {}
24 std::string message;
25 bool critical;
26 int line;
27 int column;
28 };
29
30 ManifestDebugInfo();
31 ~ManifestDebugInfo();
32 std::vector<Error> errors;
33 std::string raw_data;
34};
35
36} // namespace content
37
38#endif // CONTENT_RENDERER_MANIFEST_MANIFEST_DEBUG_INFO_H_