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_MAC_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ |
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "chrome/browser/web_applications/web_app.h" | 14 #include "chrome/browser/web_applications/web_app.h" |
15 #include "extensions/common/manifest_handlers/file_handler_info.h" | 15 #include "extensions/common/manifest_handlers/file_handler_info.h" |
16 | 16 |
| 17 // Whether to enable update and launch of app shims in tests. (Normally shims |
| 18 // are never created or launched in tests). Note that update only creates |
| 19 // internal shim bundles, i.e. it does not create new shims in ~/Applications. |
| 20 extern bool g_app_shims_allow_update_and_launch_in_tests; |
| 21 |
17 namespace web_app { | 22 namespace web_app { |
18 | 23 |
19 // Returns the full path of the .app shim that would be created by | 24 // Returns the full path of the .app shim that would be created by |
20 // CreateShortcuts(). | 25 // CreateShortcuts(). |
21 base::FilePath GetAppInstallPath(const ShortcutInfo& shortcut_info); | 26 base::FilePath GetAppInstallPath(const ShortcutInfo& shortcut_info); |
22 | 27 |
23 // If necessary, launch the shortcut for an app. | 28 // If necessary, launch the shortcut for an app. |
24 void MaybeLaunchShortcut(const ShortcutInfo& shortcut_info); | 29 void MaybeLaunchShortcut(const ShortcutInfo& shortcut_info); |
25 | 30 |
26 // Creates a shortcut for a web application. The shortcut is a stub app | 31 // Creates a shortcut for a web application. The shortcut is a stub app |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 109 |
105 // The app's file handlers. | 110 // The app's file handlers. |
106 extensions::FileHandlersInfo file_handlers_info_; | 111 extensions::FileHandlersInfo file_handlers_info_; |
107 | 112 |
108 DISALLOW_COPY_AND_ASSIGN(WebAppShortcutCreator); | 113 DISALLOW_COPY_AND_ASSIGN(WebAppShortcutCreator); |
109 }; | 114 }; |
110 | 115 |
111 } // namespace web_app | 116 } // namespace web_app |
112 | 117 |
113 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | 118 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ |
OLD | NEW |