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 { | |
|
Michael van Ouwerkerk
2014/09/08 17:07:42
This struct just represents a pair of strings, the
mlamouri (slow - plz ping)
2014/09/08 17:13:16
It's only a pair of strings for the moment. It is
Michael van Ouwerkerk
2014/09/08 17:36:27
If it's going to be more complex, that might be a
mlamouri (slow - plz ping)
2014/09/08 17:39:48
It will never be complete. The manifest spec (see
Michael van Ouwerkerk
2014/09/09 12:41:53
For the record, I'm not opposed to adding types to
mlamouri (slow - plz ping)
2014/09/09 12:45:47
What would be a reasonable alternative?
Michael van Ouwerkerk
2014/09/09 13:11:58
Reasonable is subjective. Like I said, your curren
| |
| 17 bool IsEmpty() const; | |
| 18 | |
| 19 // Null if the parsing failed or the field was not present. | |
| 20 base::NullableString16 name; | |
|
Michael van Ouwerkerk
2014/09/09 12:41:53
From nullable_string16.h: "This should be used onl
mlamouri (slow - plz ping)
2014/09/09 12:45:47
There actually is a difference. I want to be able
Michael van Ouwerkerk
2014/09/09 13:11:58
Perhaps a note for IsEmpty then, indicating that i
mlamouri (slow - plz ping)
2014/09/09 13:23:15
Done.
| |
| 21 | |
| 22 // Null if the parsing failed or the field was not present. | |
| 23 base::NullableString16 short_name; | |
| 24 }; | |
| 25 | |
| 26 } // namespace content | |
| 27 | |
| 28 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | |
| OLD | NEW |