1 // Copyright (c) 2012 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.
5 #ifndef CHROME_COMMON_WEB_APPLICATION_INFO_H_
6 #define CHROME_COMMON_WEB_APPLICATION_INFO_H_
11 #include "base/strings/string16.h"
12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "ui/gfx/size.h"
16 // Structure used when installing a web page as an app.
17 struct WebApplicationInfo
{
29 ~WebApplicationInfo();
31 // URL to a manifest that defines the application. If specified, all other
32 // attributes are derived from this manifest, and the manifest is the unique
33 // ID of the application.
36 // Setting indicating this application is artificially constructed. If set,
37 // the application was created from bookmark-style data (title, url, possibly
38 // icon), and not from an official manifest file. In that case, the app_url
39 // can be checked for the later creation of an official manifest instead of
40 // reloading the manifest_url.
43 // Title of the application.
46 // Description of the application.
47 base::string16 description
;
49 // The launch URL for the app.
52 // Set of available icons.
53 std::vector
<IconInfo
> icons
;
55 // The permissions the app requests. Only supported with manifest-based apps.
56 std::vector
<std::string
> permissions
;
58 // Set of URLs that comprise the app. Only supported with manifest-based apps.
59 // All these must be of the same origin as manifest_url.
60 std::vector
<GURL
> urls
;
62 // The type of launch container to use with the app. Currently supported
63 // values are 'tab' and 'panel'. Only supported with manifest-based apps.
64 std::string launch_container
;
66 // This indicates if the app is functional in offline mode or not.
67 bool is_offline_enabled
;
70 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_