| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_WEB_APPS_H_ | 5 #ifndef CHROME_COMMON_WEB_APPS_H_ |
| 6 #define CHROME_COMMON_WEB_APPS_H_ | 6 #define CHROME_COMMON_WEB_APPS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "gfx/size.h" | |
| 15 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
| 15 #include "ui/gfx/size.h" |
| 16 | 16 |
| 17 namespace WebKit { | 17 namespace WebKit { |
| 18 class WebDocument; | 18 class WebDocument; |
| 19 class WebFrame; | 19 class WebFrame; |
| 20 } | 20 } |
| 21 | 21 |
| 22 class Value; | 22 class Value; |
| 23 | 23 |
| 24 // Structure used when installing a web page as an app. | 24 // Structure used when installing a web page as an app. |
| 25 struct WebApplicationInfo { | 25 struct WebApplicationInfo { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Parses |web_app| information out of |definition|. Returns true on success, or | 100 // Parses |web_app| information out of |definition|. Returns true on success, or |
| 101 // false and |error| on failure. This function assumes that |web_app| has a | 101 // false and |error| on failure. This function assumes that |web_app| has a |
| 102 // valid manifest_url. | 102 // valid manifest_url. |
| 103 bool ParseWebAppFromDefinitionFile(Value* definition, | 103 bool ParseWebAppFromDefinitionFile(Value* definition, |
| 104 WebApplicationInfo* web_app, | 104 WebApplicationInfo* web_app, |
| 105 string16* error); | 105 string16* error); |
| 106 | 106 |
| 107 } // namespace web_apps | 107 } // namespace web_apps |
| 108 | 108 |
| 109 #endif // CHROME_COMMON_WEB_APPS_H_ | 109 #endif // CHROME_COMMON_WEB_APPS_H_ |
| OLD | NEW |