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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 85 // This is a proprietary extension of the web Manifest, double-check that it |
86 // is okay to use this entry. | 86 // is okay to use this entry. |
87 // Null if parsing failed or the field was not present. | 87 // Null if parsing failed or the field was not present. |
88 base::NullableString16 gcm_sender_id; | 88 base::NullableString16 gcm_sender_id; |
89 | 89 |
| 90 // This is a proprietary extension of the web Manifest, double-check that it |
| 91 // is okay to use this entry. |
| 92 // False if parsing failed or the field was not present. |
| 93 bool gcm_user_visible_only; |
| 94 |
90 // Maximum length for all the strings inside the Manifest when it is sent over | 95 // Maximum length for all the strings inside the Manifest when it is sent over |
91 // IPC. The renderer process should truncate the strings before sending the | 96 // IPC. The renderer process should truncate the strings before sending the |
92 // Manifest and the browser process must do the same when receiving it. | 97 // Manifest and the browser process must do the same when receiving it. |
93 static const size_t kMaxIPCStringLength; | 98 static const size_t kMaxIPCStringLength; |
94 }; | 99 }; |
95 | 100 |
96 } // namespace content | 101 } // namespace content |
97 | 102 |
98 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 103 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
OLD | NEW |