| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // internal shim bundles, i.e. it does not create new shims in ~/Applications. | 25 // internal shim bundles, i.e. it does not create new shims in ~/Applications. |
| 26 extern bool g_app_shims_allow_update_and_launch_in_tests; | 26 extern bool g_app_shims_allow_update_and_launch_in_tests; |
| 27 | 27 |
| 28 namespace web_app { | 28 namespace web_app { |
| 29 | 29 |
| 30 // Returns the full path of the .app shim that would be created by | 30 // Returns the full path of the .app shim that would be created by |
| 31 // CreateShortcuts(). | 31 // CreateShortcuts(). |
| 32 base::FilePath GetAppInstallPath(const ShortcutInfo& shortcut_info); | 32 base::FilePath GetAppInstallPath(const ShortcutInfo& shortcut_info); |
| 33 | 33 |
| 34 // If necessary, launch the shortcut for an app. | 34 // If necessary, launch the shortcut for an app. |
| 35 void MaybeLaunchShortcut(std::unique_ptr<ShortcutInfo> shortcut_info); | 35 void MaybeLaunchShortcut(scoped_refptr<ShortcutInfo> shortcut_info); |
| 36 | 36 |
| 37 // Rebuild the shortcut and relaunch it. | 37 // Rebuild the shortcut and relaunch it. |
| 38 bool MaybeRebuildShortcut(const base::CommandLine& command_line); | 38 bool MaybeRebuildShortcut(const base::CommandLine& command_line); |
| 39 | 39 |
| 40 // Reveals app shim in Finder given a profile and app. | 40 // Reveals app shim in Finder given a profile and app. |
| 41 // Calls RevealAppShimInFinderForAppOnFileThread and schedules it | 41 // Calls RevealAppShimInFinderForAppOnFileThread and schedules it |
| 42 // on the FILE thread. | 42 // on the FILE thread. |
| 43 void RevealAppShimInFinderForApp(Profile* profile, | 43 void RevealAppShimInFinderForApp(Profile* profile, |
| 44 const extensions::Extension* app); | 44 const extensions::Extension* app); |
| 45 | 45 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // Information about the app. Owned by the caller of the constructor. | 125 // Information about the app. Owned by the caller of the constructor. |
| 126 const ShortcutInfo* info_; | 126 const ShortcutInfo* info_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(WebAppShortcutCreator); | 128 DISALLOW_COPY_AND_ASSIGN(WebAppShortcutCreator); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace web_app | 131 } // namespace web_app |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | 133 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ |
| OLD | NEW |