| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // A boolean that is used as a hint for the user agent to say that related | 110 // A boolean that is used as a hint for the user agent to say that related |
| 111 // applications should be preferred over the web application. False if missing | 111 // applications should be preferred over the web application. False if missing |
| 112 // or there is a parsing failure. | 112 // or there is a parsing failure. |
| 113 bool prefer_related_applications; | 113 bool prefer_related_applications; |
| 114 | 114 |
| 115 // This is a proprietary extension of the web Manifest, double-check that it | 115 // This is a proprietary extension of the web Manifest, double-check that it |
| 116 // is okay to use this entry. | 116 // is okay to use this entry. |
| 117 // Null if parsing failed or the field was not present. | 117 // Null if parsing failed or the field was not present. |
| 118 base::NullableString16 gcm_sender_id; | 118 base::NullableString16 gcm_sender_id; |
| 119 | 119 |
| 120 // This is a proprietary extension of the web Manifest, double-check that it | |
| 121 // is okay to use this entry. | |
| 122 // False if parsing failed or the field was not present. | |
| 123 bool gcm_user_visible_only; | |
| 124 | |
| 125 // Maximum length for all the strings inside the Manifest when it is sent over | 120 // Maximum length for all the strings inside the Manifest when it is sent over |
| 126 // IPC. The renderer process should truncate the strings before sending the | 121 // IPC. The renderer process should truncate the strings before sending the |
| 127 // Manifest and the browser process must do the same when receiving it. | 122 // Manifest and the browser process must do the same when receiving it. |
| 128 static const size_t kMaxIPCStringLength; | 123 static const size_t kMaxIPCStringLength; |
| 129 }; | 124 }; |
| 130 | 125 |
| 131 } // namespace content | 126 } // namespace content |
| 132 | 127 |
| 133 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 128 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| OLD | NEW |