| 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 "base/strings/nullable_string16.h" | 8 #include "base/strings/nullable_string16.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Null if the parsing failed or the field was not present. | 25 // Null if the parsing failed or the field was not present. |
| 26 base::NullableString16 name; | 26 base::NullableString16 name; |
| 27 | 27 |
| 28 // Null if the parsing failed or the field was not present. | 28 // Null if the parsing failed or the field was not present. |
| 29 base::NullableString16 short_name; | 29 base::NullableString16 short_name; |
| 30 | 30 |
| 31 // Empty if the parsing failed or the field was not present. | 31 // Empty if the parsing failed or the field was not present. |
| 32 GURL start_url; | 32 GURL start_url; |
| 33 | 33 |
| 34 // This is an extension only used when PushMessaging Blink flag is enabled. |
| 35 // Null if parsing failed or the field was not present. |
| 36 base::NullableString16 gcm_sender_id; |
| 37 |
| 34 // Maximum length for all the strings inside the Manifest when it is sent over | 38 // Maximum length for all the strings inside the Manifest when it is sent over |
| 35 // IPC. The renderer process should truncate the strings before sending the | 39 // IPC. The renderer process should truncate the strings before sending the |
| 36 // Manifest and the browser process must do the same when receiving it. | 40 // Manifest and the browser process must do the same when receiving it. |
| 37 static const size_t kMaxIPCStringLength; | 41 static const size_t kMaxIPCStringLength; |
| 38 }; | 42 }; |
| 39 | 43 |
| 40 } // namespace content | 44 } // namespace content |
| 41 | 45 |
| 42 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 46 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| OLD | NEW |