Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: content/public/common/manifest.h

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Mounir's comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 // described in the "Manifest for Web Application" document: 23 // described in the "Manifest for Web Application" document:
24 // http://w3c.github.io/manifest/ 24 // http://w3c.github.io/manifest/
25 struct CONTENT_EXPORT Manifest { 25 struct CONTENT_EXPORT Manifest {
26 // Structure representing an icon as per the Manifest specification, see: 26 // Structure representing an icon as per the Manifest specification, see:
27 // http://w3c.github.io/manifest/#dfn-icon-object 27 // http://w3c.github.io/manifest/#dfn-icon-object
28 struct CONTENT_EXPORT Icon { 28 struct CONTENT_EXPORT Icon {
29 Icon(); 29 Icon();
30 Icon(const Icon& other); 30 Icon(const Icon& other);
31 ~Icon(); 31 ~Icon();
32 32
33 bool operator==(const Icon& other) const;
34
33 // MUST be a valid url. If an icon doesn't have a valid URL, it will not be 35 // MUST be a valid url. If an icon doesn't have a valid URL, it will not be
34 // successfully parsed, thus will not be represented in the Manifest. 36 // successfully parsed, thus will not be represented in the Manifest.
35 GURL src; 37 GURL src;
36 38
37 // Null if the parsing failed or the field was not present. The type can be 39 // Null if the parsing failed or the field was not present. The type can be
38 // any string and doesn't have to be a valid image MIME type at this point. 40 // any string and doesn't have to be a valid image MIME type at this point.
39 // It is up to the consumer of the object to check if the type matches a 41 // It is up to the consumer of the object to check if the type matches a
40 // supported type. 42 // supported type.
41 base::NullableString16 type; 43 base::NullableString16 type;
42 44
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 static const size_t kMaxIPCStringLength; 131 static const size_t kMaxIPCStringLength;
130 132
131 // Constant representing an invalid color. Set to a value outside the 133 // Constant representing an invalid color. Set to a value outside the
132 // range of a 32-bit integer. 134 // range of a 32-bit integer.
133 static const int64_t kInvalidOrMissingColor; 135 static const int64_t kInvalidOrMissingColor;
134 }; 136 };
135 137
136 } // namespace content 138 } // namespace content
137 139
138 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ 140 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698