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

Side by Side Diff: content/renderer/manifest/manifest_parser.h

Issue 577673004: Add support for 'start_url' in Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_manager_content
Patch Set: oups Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/renderer/manifest/manifest_manager.cc ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698