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

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

Issue 2063003003: Implement "scope" Web Manifest parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'webapk_manifest_scope00' into webapk_manifest_scope0 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
« no previous file with comments | « no previous file | content/public/common/manifest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // kInvalidOrMissingColor and can be safely cast to SkColor if is valid. 119 // kInvalidOrMissingColor and can be safely cast to SkColor if is valid.
120 // Set to kInvalidOrMissingColor if parsing failed or field is not 120 // Set to kInvalidOrMissingColor if parsing failed or field is not
121 // present. 121 // present.
122 int64_t background_color; 122 int64_t background_color;
123 123
124 // This is a proprietary extension of the web Manifest, double-check that it 124 // This is a proprietary extension of the web Manifest, double-check that it
125 // is okay to use this entry. 125 // is okay to use this entry.
126 // Null if parsing failed or the field was not present. 126 // Null if parsing failed or the field was not present.
127 base::NullableString16 gcm_sender_id; 127 base::NullableString16 gcm_sender_id;
128 128
129 // Empty if the parsing failed or the field was not present.
130 GURL scope;
131
129 // Maximum length for all the strings inside the Manifest when it is sent over 132 // Maximum length for all the strings inside the Manifest when it is sent over
130 // IPC. The renderer process should truncate the strings before sending the 133 // IPC. The renderer process should truncate the strings before sending the
131 // Manifest and the browser process must do the same when receiving it. 134 // Manifest and the browser process must do the same when receiving it.
132 static const size_t kMaxIPCStringLength; 135 static const size_t kMaxIPCStringLength;
133 136
134 // Constant representing an invalid color. Set to a value outside the 137 // Constant representing an invalid color. Set to a value outside the
135 // range of a 32-bit integer. 138 // range of a 32-bit integer.
136 static const int64_t kInvalidOrMissingColor; 139 static const int64_t kInvalidOrMissingColor;
137 }; 140 };
138 141
139 } // namespace content 142 } // namespace content
140 143
141 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ 144 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/common/manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698