| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // kInvalidOrMissingColor and can be safely cast to SkColor if is valid. | 119 // kInvalidOrMissingColor and can be safely cast to SkColor if is valid. |
| 120 // Set to kInvalidOrMissingColor if parsing failed or field is not | 120 // Set to kInvalidOrMissingColor if parsing failed or field is not |
| 121 // present. | 121 // present. |
| 122 int64_t background_color; | 122 int64_t background_color; |
| 123 | 123 |
| 124 // This is a proprietary extension of the web Manifest, double-check that it | 124 // This is a proprietary extension of the web Manifest, double-check that it |
| 125 // is okay to use this entry. | 125 // is okay to use this entry. |
| 126 // Null if parsing failed or the field was not present. | 126 // Null if parsing failed or the field was not present. |
| 127 base::NullableString16 gcm_sender_id; | 127 base::NullableString16 gcm_sender_id; |
| 128 | 128 |
| 129 // Empty if the parsing failed or the field was not present. |
| 130 GURL scope; |
| 131 |
| 129 // Maximum length for all the strings inside the Manifest when it is sent over | 132 // Maximum length for all the strings inside the Manifest when it is sent over |
| 130 // IPC. The renderer process should truncate the strings before sending the | 133 // IPC. The renderer process should truncate the strings before sending the |
| 131 // Manifest and the browser process must do the same when receiving it. | 134 // Manifest and the browser process must do the same when receiving it. |
| 132 static const size_t kMaxIPCStringLength; | 135 static const size_t kMaxIPCStringLength; |
| 133 | 136 |
| 134 // Constant representing an invalid color. Set to a value outside the | 137 // Constant representing an invalid color. Set to a value outside the |
| 135 // range of a 32-bit integer. | 138 // range of a 32-bit integer. |
| 136 static const int64_t kInvalidOrMissingColor; | 139 static const int64_t kInvalidOrMissingColor; |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace content | 142 } // namespace content |
| 140 | 143 |
| 141 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 144 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| OLD | NEW |