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 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ 6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ 7 8 #include "base/strings/string_piece.h" 9 #include "content/common/content_export.h" 10 11 class GURL; 12 13 namespace base { 14 class DictionaryValue; 15 } 16 17 namespace content { 18 19 struct Manifest; 20 21 // ManifestParser handles the logic of parsing the Web Manifest from a string. 22 // It implements: 23 // http://w3c.github.io/manifest/#dfn-steps-for-processing-a-manifest 24 class CONTENT_EXPORT ManifestParser { 25 public: 26 static Manifest Parse(const base::StringPiece&, 27 const GURL& manifest_url, 28 const GURL& document_url); 29 }; 30 31 } // namespace content 32 33 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ 34