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

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

Issue 577673004: Add support for 'start_url' in Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_manager_content
Patch Set: oups Created 6 years, 3 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 "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 "url/gurl.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 // The Manifest structure is an internal representation of the Manifest file 14 // The Manifest structure is an internal representation of the Manifest file
14 // described in the "Manifest for Web Application" document: 15 // described in the "Manifest for Web Application" document:
15 // http://w3c.github.io/manifest/ 16 // http://w3c.github.io/manifest/
16 struct CONTENT_EXPORT Manifest { 17 struct CONTENT_EXPORT Manifest {
17 Manifest(); 18 Manifest();
18 ~Manifest(); 19 ~Manifest();
19 20
20 // Returns whether this Manifest had no attribute set. A newly created 21 // Returns whether this Manifest had no attribute set. A newly created
21 // Manifest is always empty. 22 // Manifest is always empty.
22 bool IsEmpty() const; 23 bool IsEmpty() const;
23 24
24 // Null if the parsing failed or the field was not present. 25 // Null if the parsing failed or the field was not present.
25 base::NullableString16 name; 26 base::NullableString16 name;
26 27
27 // Null if the parsing failed or the field was not present. 28 // Null if the parsing failed or the field was not present.
28 base::NullableString16 short_name; 29 base::NullableString16 short_name;
29 30
31 // Empty if the parsing failed or the field was not present.
32 GURL start_url;
33
30 // Maximum length for all the strings inside the Manifest when it is sent over 34 // Maximum length for all the strings inside the Manifest when it is sent over
31 // IPC. The renderer process should truncate the strings before sending the 35 // IPC. The renderer process should truncate the strings before sending the
32 // Manifest and the browser process must do the same when receiving it. 36 // Manifest and the browser process must do the same when receiving it.
33 static const size_t kMaxIPCStringLength; 37 static const size_t kMaxIPCStringLength;
34 }; 38 };
35 39
36 } // namespace content 40 } // namespace content
37 41
38 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ 42 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_
OLDNEW
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | content/renderer/manifest/manifest_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698