OLD | NEW |
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_PUBLIC_COMMON_MANIFEST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/nullable_string16.h" | 10 #include "base/strings/nullable_string16.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 DisplayMode display; | 75 DisplayMode display; |
76 | 76 |
77 // Set to blink::WebScreenOrientationLockDefault if the parsing failed or the | 77 // Set to blink::WebScreenOrientationLockDefault if the parsing failed or the |
78 // field was not present. | 78 // field was not present. |
79 blink::WebScreenOrientationLockType orientation; | 79 blink::WebScreenOrientationLockType orientation; |
80 | 80 |
81 // Empty if the parsing failed, the field was not present, empty or all the | 81 // Empty if the parsing failed, the field was not present, empty or all the |
82 // icons inside the JSON array were invalid. | 82 // icons inside the JSON array were invalid. |
83 std::vector<Icon> icons; | 83 std::vector<Icon> icons; |
84 | 84 |
| 85 // This is a proprietary extension of the web Manifest, double-check that it |
| 86 // is okay to use this entry. |
| 87 // Null if parsing failed or the field was not present. |
| 88 base::NullableString16 gcm_sender_id; |
| 89 |
85 // Maximum length for all the strings inside the Manifest when it is sent over | 90 // Maximum length for all the strings inside the Manifest when it is sent over |
86 // IPC. The renderer process should truncate the strings before sending the | 91 // IPC. The renderer process should truncate the strings before sending the |
87 // Manifest and the browser process must do the same when receiving it. | 92 // Manifest and the browser process must do the same when receiving it. |
88 static const size_t kMaxIPCStringLength; | 93 static const size_t kMaxIPCStringLength; |
89 }; | 94 }; |
90 | 95 |
91 } // namespace content | 96 } // namespace content |
92 | 97 |
93 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 98 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
OLD | NEW |