Index: content/renderer/manifest/manifest_parser.h |
diff --git a/content/renderer/manifest/manifest_parser.h b/content/renderer/manifest/manifest_parser.h |
index 13e330b0ddbb18ca0cc78dcc98199d027f290015..8c605de5a137dffa90952121fc052fca93adda72 100644 |
--- a/content/renderer/manifest/manifest_parser.h |
+++ b/content/renderer/manifest/manifest_parser.h |
@@ -135,6 +135,26 @@ class CONTENT_EXPORT ManifestParser { |
// Returns true iff the string could be parsed as the boolean true. |
bool ParseGCMUserVisibleOnly(const base::DictionaryValue& dictionary); |
+ // Parses the platform field of a related application. |
+ // Returns CHROME_RELATED_APPLICATION_PLATFORM_UNSPECIFIED if the parsing |
+ // failed. |
+ Manifest::ChromeRelatedApplicationPlatform |
+ ParseChromeRelatedApplicationPlatform( |
+ const base::DictionaryValue& application); |
+ |
+ // Parses the id field of a related application. |
+ // Returns the parsed string if any, a null string if the parsing failed. |
+ base::NullableString16 ParseChromeRelatedApplicationId( |
+ const base::DictionaryValue& application); |
+ |
+ // Parses the 'chrome_related_applications' field of the manifest. |
+ // Returns a vector of Manifest::RelatedApplication with the successfully |
+ // parsed applications, if any. An empty vector if the field was not present |
+ // or empty. |
+ std::vector<Manifest::ChromeRelatedApplication> |
+ ParseChromeRelatedApplications( |
+ const base::DictionaryValue& dictionary); |
+ |
const base::StringPiece& data_; |
GURL manifest_url_; |
GURL document_url_; |