| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ | 5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ |
| 6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ | 6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ |
| 7 | 7 |
| 8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 class GURL; |
| 12 |
| 11 namespace base { | 13 namespace base { |
| 12 class DictionaryValue; | 14 class DictionaryValue; |
| 13 } | 15 } |
| 14 | 16 |
| 15 namespace content { | 17 namespace content { |
| 16 | 18 |
| 17 struct Manifest; | 19 struct Manifest; |
| 18 | 20 |
| 19 // ManifestParser handles the logic of parsing the Web Manifest from a string. | 21 // ManifestParser handles the logic of parsing the Web Manifest from a string. |
| 20 // It implements: | 22 // It implements: |
| 21 // http://w3c.github.io/manifest/#dfn-steps-for-processing-a-manifest | 23 // http://w3c.github.io/manifest/#dfn-steps-for-processing-a-manifest |
| 22 class CONTENT_EXPORT ManifestParser { | 24 class CONTENT_EXPORT ManifestParser { |
| 23 public: | 25 public: |
| 24 static Manifest Parse(const base::StringPiece&); | 26 static Manifest Parse(const base::StringPiece&, |
| 27 const GURL& manifest_url, |
| 28 const GURL& document_url); |
| 25 }; | 29 }; |
| 26 | 30 |
| 27 } // namespace content | 31 } // namespace content |
| 28 | 32 |
| 29 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ | 33 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ |
| OLD | NEW |