Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_COMMON_MANIFEST_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_ | |
| 7 | |
| 8 #include "base/strings/nullable_string16.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 // The Manifest structure is an internal representation of the Manifest file | |
| 14 // described in the "Manifest for Web Application" document: | |
| 15 // http://w3c.github.io/manifest/ | |
| 16 struct CONTENT_EXPORT Manifest { | |
| 17 Manifest(); | |
|
jochen (gone - plz use gerrit)
2014/09/12 11:55:18
ctor should take paramters for name and short_name
mlamouri (slow - plz ping)
2014/09/12 12:05:19
Why? Those members might or might not be present i
jochen (gone - plz use gerrit)
2014/09/12 12:09:40
currently, the parser always sets both fields, and
mlamouri (slow - plz ping)
2014/09/12 12:16:47
What do you mean by "that's how we do structs"? Mo
| |
| 18 ~Manifest(); | |
| 19 | |
| 20 // Returns whether this Manifest had no attribute set. A newly created | |
| 21 // Manifest is always empty. | |
| 22 bool IsEmpty() const; | |
| 23 | |
| 24 // Null if the parsing failed or the field was not present. | |
| 25 base::NullableString16 name; | |
| 26 | |
| 27 // Null if the parsing failed or the field was not present. | |
| 28 base::NullableString16 short_name; | |
| 29 }; | |
| 30 | |
| 31 } // namespace content | |
| 32 | |
| 33 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | |
| OLD | NEW |