Chromium Code Reviews| Index: content/public/common/manifest.h |
| diff --git a/content/public/common/manifest.h b/content/public/common/manifest.h |
| index 95180e21f7330e07d44c77a322d1e5bfa6114d00..a39be97a6ec036b468ae5f46839fa726d4aac31c 100644 |
| --- a/content/public/common/manifest.h |
| +++ b/content/public/common/manifest.h |
| @@ -27,6 +27,12 @@ struct CONTENT_EXPORT Manifest { |
| DISPLAY_MODE_BROWSER |
| }; |
| + enum RelatedApplicationPlatform { |
|
mlamouri (slow - plz ping)
2015/02/16 20:20:39
Could you prefix that with Chrome?
benwells
2015/02/16 23:58:43
Done.
|
| + RELATED_APPLICATION_PLATFORM_UNSPECIFIED, |
| + RELATED_APPLICATION_PLATFORM_ANDROID, |
| + RELATED_APPLICATION_PLATFORM_WEB, |
| + }; |
| + |
| // Structure representing an icon as per the Manifest specification, see: |
| // http://w3c.github.io/manifest/#dfn-icon-object |
| struct CONTENT_EXPORT Icon { |
| @@ -54,6 +60,19 @@ struct CONTENT_EXPORT Manifest { |
| static const double kDefaultDensity; |
| }; |
| + // Structure representing a related application. |
| + struct CONTENT_EXPORT RelatedApplication { |
|
mlamouri (slow - plz ping)
2015/02/16 20:20:39
ditto.
benwells
2015/02/16 23:58:43
Done.
|
| + RelatedApplication(); |
| + ~RelatedApplication(); |
| + |
| + // The platform the application runs on. |
| + RelatedApplicationPlatform platform; |
| + |
| + // Platform specific key identifying the application. May not be present |
| + // for some platforms (e.g. WEB). |
| + base::NullableString16 id; |
| + }; |
| + |
| Manifest(); |
| ~Manifest(); |
| @@ -92,6 +111,10 @@ struct CONTENT_EXPORT Manifest { |
| // False if parsing failed or the field was not present. |
| bool gcm_user_visible_only; |
| + // Empty if the parsing failed, the field was not present, empty or all the |
| + // applications inside the array were invalid. |
| + std::vector<RelatedApplication> chrome_related_applications; |
| + |
| // Maximum length for all the strings inside the Manifest when it is sent over |
| // IPC. The renderer process should truncate the strings before sending the |
| // Manifest and the browser process must do the same when receiving it. |