Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/version.h" | |
| 14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 15 #include "chrome/browser/shell_integration.h" | 16 #include "chrome/browser/shell_integration.h" |
| 16 #include "chrome/common/web_application_info.h" | 17 #include "chrome/common/web_application_info.h" |
| 17 #include "extensions/common/manifest_handlers/file_handler_info.h" | 18 #include "extensions/common/manifest_handlers/file_handler_info.h" |
| 18 | 19 |
| 19 class Profile; | 20 class Profile; |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 class WebContents; | 23 class WebContents; |
| 23 } | 24 } |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 45 // and the launch url will be detected at start-up. In this case, |url| | 46 // and the launch url will be detected at start-up. In this case, |url| |
| 46 // is still used to generate the app id (windows app id, not chrome app id). | 47 // is still used to generate the app id (windows app id, not chrome app id). |
| 47 std::string extension_id; | 48 std::string extension_id; |
| 48 bool is_platform_app; | 49 bool is_platform_app; |
| 49 base::string16 title; | 50 base::string16 title; |
| 50 base::string16 description; | 51 base::string16 description; |
| 51 base::FilePath extension_path; | 52 base::FilePath extension_path; |
| 52 gfx::ImageFamily favicon; | 53 gfx::ImageFamily favicon; |
| 53 base::FilePath profile_path; | 54 base::FilePath profile_path; |
| 54 std::string profile_name; | 55 std::string profile_name; |
| 56 base::Version version; | |
|
tapted
2015/03/18 01:49:59
There's a comment on the bug about using a string,
jackhou1
2015/03/18 04:43:48
Yeah, I considered this. Setting an arbitrary stri
tapted
2015/03/19 04:10:20
Yeah I agree with you. And there doesn't seem to b
jackhou1
2015/03/23 03:37:15
Done.
| |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 // This specifies a folder in the system applications menu (e.g the Start Menu | 59 // This specifies a folder in the system applications menu (e.g the Start Menu |
| 58 // on Windows). | 60 // on Windows). |
| 59 // | 61 // |
| 60 // These represent the applications menu root, the "Google Chrome" folder and | 62 // These represent the applications menu root, the "Google Chrome" folder and |
| 61 // the "Chrome Apps" folder respectively. | 63 // the "Chrome Apps" folder respectively. |
| 62 // | 64 // |
| 63 // APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the | 65 // APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the |
| 64 // app with the OS (in order to give its windows shelf icons, and correct icons | 66 // app with the OS (in order to give its windows shelf icons, and correct icons |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 | 266 |
| 265 // Sanitizes |name| and returns a version of it that is safe to use as an | 267 // Sanitizes |name| and returns a version of it that is safe to use as an |
| 266 // on-disk file name . | 268 // on-disk file name . |
| 267 base::FilePath GetSanitizedFileName(const base::string16& name); | 269 base::FilePath GetSanitizedFileName(const base::string16& name); |
| 268 | 270 |
| 269 } // namespace internals | 271 } // namespace internals |
| 270 | 272 |
| 271 } // namespace web_app | 273 } // namespace web_app |
| 272 | 274 |
| 273 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 275 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| OLD | NEW |