Index: content/renderer/manifest/manifest_parser.h |
diff --git a/content/renderer/manifest/manifest_parser.h b/content/renderer/manifest/manifest_parser.h |
index f8817314fd09c76ea44b8dd9b16bb89b0f73d6c8..c8342474a868b9cc5f4ce96cbebb4568c5100c2b 100644 |
--- a/content/renderer/manifest/manifest_parser.h |
+++ b/content/renderer/manifest/manifest_parser.h |
@@ -5,6 +5,8 @@ |
#ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ |
#define CONTENT_RENDERER_MANIFEST_MANIFEST_PARSER_H_ |
+#include <stdint.h> |
+ |
#include "base/strings/nullable_string16.h" |
#include "base/strings/string_piece.h" |
#include "content/common/content_export.h" |
@@ -155,6 +157,12 @@ class CONTENT_EXPORT ManifestParser { |
// returns true iff the field could be parsed as the boolean true. |
bool ParsePreferRelatedApplications(const base::DictionaryValue& dictionary); |
+ // Parses the 'theme_color' field of the manifest, as defined in: |
+ // http://w3c.github.io/manifest/#dfn-steps-for-processing-the-theme_color-member |
+ // Returns the parsed theme color if any, |
+ // Manifest::kInvalidOrMissingThemeColor if the parsing failed. |
+ int64_t ParseThemeColor(const base::DictionaryValue& dictionary); |
+ |
// Parses the 'gcm_sender_id' field of the manifest. |
// This is a proprietary extension of the Web Manifest specification. |
// Returns the parsed string if any, a null string if the parsing failed. |