| 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 "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" |
| 10 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 // The Manifest structure is an internal representation of the Manifest file | 15 // The Manifest structure is an internal representation of the Manifest file |
| 15 // described in the "Manifest for Web Application" document: | 16 // described in the "Manifest for Web Application" document: |
| 16 // http://w3c.github.io/manifest/ | 17 // http://w3c.github.io/manifest/ |
| 17 struct CONTENT_EXPORT Manifest { | 18 struct CONTENT_EXPORT Manifest { |
| 18 enum DisplayMode { | 19 enum DisplayMode { |
| 19 DISPLAY_MODE_UNSPECIFIED, | 20 DISPLAY_MODE_UNSPECIFIED, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 // Null if the parsing failed or the field was not present. | 37 // Null if the parsing failed or the field was not present. |
| 37 base::NullableString16 short_name; | 38 base::NullableString16 short_name; |
| 38 | 39 |
| 39 // Empty if the parsing failed or the field was not present. | 40 // Empty if the parsing failed or the field was not present. |
| 40 GURL start_url; | 41 GURL start_url; |
| 41 | 42 |
| 42 // Set to DISPLAY_MODE_UNSPECIFIED if the parsing failed or the field was not | 43 // Set to DISPLAY_MODE_UNSPECIFIED if the parsing failed or the field was not |
| 43 // present. | 44 // present. |
| 44 DisplayMode display; | 45 DisplayMode display; |
| 45 | 46 |
| 47 // Set to blink::WebScreenOrientationLockDefault if the parsing failed or the |
| 48 // field was not present. |
| 49 blink::WebScreenOrientationLockType orientation; |
| 50 |
| 46 // Maximum length for all the strings inside the Manifest when it is sent over | 51 // Maximum length for all the strings inside the Manifest when it is sent over |
| 47 // IPC. The renderer process should truncate the strings before sending the | 52 // IPC. The renderer process should truncate the strings before sending the |
| 48 // Manifest and the browser process must do the same when receiving it. | 53 // Manifest and the browser process must do the same when receiving it. |
| 49 static const size_t kMaxIPCStringLength; | 54 static const size_t kMaxIPCStringLength; |
| 50 }; | 55 }; |
| 51 | 56 |
| 52 } // namespace content | 57 } // namespace content |
| 53 | 58 |
| 54 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 59 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| OLD | NEW |