| 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 // This file extends the browser distribution with a specific implementation | 5 // This file extends the browser distribution with a specific implementation |
| 6 // for Chrome AppHost. | 6 // for Chrome AppHost. |
| 7 | 7 |
| 8 #ifndef CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ |
| 9 #define CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ | 9 #define CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ |
| 10 | 10 |
| 11 #include "chrome/installer/util/browser_distribution.h" | 11 #include "chrome/installer/util/browser_distribution.h" |
| 12 #include "chrome/installer/util/util_constants.h" | 12 #include "chrome/installer/util/util_constants.h" |
| 13 | 13 |
| 14 class ChromeAppHostDistribution : public BrowserDistribution { | 14 class ChromeAppHostDistribution : public BrowserDistribution { |
| 15 public: | 15 public: |
| 16 virtual string16 GetAppGuid() OVERRIDE; | 16 virtual string16 GetAppGuid() OVERRIDE; |
| 17 | 17 |
| 18 virtual string16 GetDisplayName() OVERRIDE; | 18 virtual string16 GetDisplayName() OVERRIDE; |
| 19 | 19 |
| 20 virtual string16 GetBrowserProgIdPrefix() OVERRIDE; |
| 21 |
| 20 // This can only be called with SHORTCUT_APP_LAUNCHER for |shortcut_type|. | 22 // This can only be called with SHORTCUT_APP_LAUNCHER for |shortcut_type|. |
| 21 virtual string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE; | 23 virtual string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE; |
| 22 | 24 |
| 23 virtual string16 GetIconFilename() OVERRIDE; | 25 virtual string16 GetIconFilename() OVERRIDE; |
| 24 | 26 |
| 25 virtual string16 GetBaseAppName() OVERRIDE; | 27 virtual string16 GetBaseAppName() OVERRIDE; |
| 26 | 28 |
| 27 virtual string16 GetBaseAppId() OVERRIDE; | 29 virtual string16 GetBaseAppId() OVERRIDE; |
| 28 | 30 |
| 29 virtual string16 GetInstallSubDir() OVERRIDE; | 31 virtual string16 GetInstallSubDir() OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 47 virtual string16 GetUninstallLinkName() OVERRIDE; | 49 virtual string16 GetUninstallLinkName() OVERRIDE; |
| 48 | 50 |
| 49 virtual string16 GetUninstallRegPath() OVERRIDE; | 51 virtual string16 GetUninstallRegPath() OVERRIDE; |
| 50 | 52 |
| 51 virtual string16 GetVersionKey() OVERRIDE; | 53 virtual string16 GetVersionKey() OVERRIDE; |
| 52 | 54 |
| 53 virtual bool CanSetAsDefault() OVERRIDE; | 55 virtual bool CanSetAsDefault() OVERRIDE; |
| 54 | 56 |
| 55 virtual bool CanCreateDesktopShortcuts() OVERRIDE; | 57 virtual bool CanCreateDesktopShortcuts() OVERRIDE; |
| 56 | 58 |
| 57 virtual bool GetCommandExecuteImplClsid( | 59 virtual bool GetCommandExecuteImplClsidString( |
| 58 string16* handler_class_uuid) OVERRIDE; | 60 string16* handler_class_uuid) OVERRIDE; |
| 59 | 61 |
| 60 virtual void UpdateInstallStatus(bool system_install, | 62 virtual void UpdateInstallStatus(bool system_install, |
| 61 installer::ArchiveType archive_type, | 63 installer::ArchiveType archive_type, |
| 62 installer::InstallStatus install_status) OVERRIDE; | 64 installer::InstallStatus install_status) OVERRIDE; |
| 63 | 65 |
| 64 protected: | 66 protected: |
| 65 friend class BrowserDistribution; | 67 friend class BrowserDistribution; |
| 66 | 68 |
| 67 // Disallow construction from non-friends. | 69 // Disallow construction from non-friends. |
| 68 ChromeAppHostDistribution(); | 70 ChromeAppHostDistribution(); |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 #endif // CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ | 73 #endif // CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ |
| OLD | NEW |