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..975d3506000afc261ea7f33829faade356278522 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 ChromeRelatedApplicationPlatform { |
| + CHROME_RELATED_APPLICATION_PLATFORM_UNSPECIFIED, |
| + CHROME_RELATED_APPLICATION_PLATFORM_ANDROID, |
| + CHROME_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 ChromeRelatedApplication { |
| + ChromeRelatedApplication(); |
| + ~ChromeRelatedApplication(); |
| + |
| + // The platform the application runs on. |
| + ChromeRelatedApplicationPlatform platform; |
| + |
| + // Platform specific key identifying the application. May not be present |
| + // for some platforms (e.g. WEB). |
| + base::NullableString16 id; |
|
jschuh
2015/02/17 21:55:12
Any way we can make this type more specific? I'm j
benwells
2015/02/17 22:11:16
It's a string like "com.chrome.beta". In some case
|
| + }; |
| + |
| Manifest(); |
| ~Manifest(); |
| @@ -92,6 +111,13 @@ struct CONTENT_EXPORT Manifest { |
| // False if parsing failed or the field was not present. |
| bool gcm_user_visible_only; |
| + // This is a proprietary extension of the web Manifest, double-check that it |
| + // is okay to use this entry. |
| + // Empty if the parsing failed, the field was not present, empty or all the |
| + // applications inside the array were invalid. The order of the array is |
| + // important and indicates the priority of the applications to use. |
| + std::vector<ChromeRelatedApplication> 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. |