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 3 // found in the LICENSE file. 4 // 5 // This file extends the browser distribution with a specific implementation 6 // for Chrome AppHost. 7 8 #ifndef CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ 9 #define CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ 10 11 #include "chrome/installer/util/browser_distribution.h" 12 #include "chrome/installer/util/util_constants.h" 13 14 class ChromeAppHostDistribution : public BrowserDistribution { 15 public: 16 virtual base::string16 GetDisplayName() OVERRIDE; 17 18 virtual base::string16 GetBrowserProgIdPrefix() OVERRIDE; 19 20 virtual base::string16 GetBrowserProgIdDesc() OVERRIDE; 21 22 // This can only be called with SHORTCUT_APP_LAUNCHER for |shortcut_type|. 23 virtual base::string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE; 24 25 virtual base::string16 GetIconFilename() OVERRIDE; 26 27 virtual base::string16 GetBaseAppName() OVERRIDE; 28 29 virtual base::string16 GetBaseAppId() OVERRIDE; 30 31 virtual base::string16 GetInstallSubDir() OVERRIDE; 32 33 virtual base::string16 GetPublisherName() OVERRIDE; 34 35 virtual base::string16 GetAppDescription() OVERRIDE; 36 37 virtual base::string16 GetLongAppDescription() OVERRIDE; 38 39 virtual std::string GetSafeBrowsingName() OVERRIDE; 40 41 virtual std::string GetNetworkStatsServer() const OVERRIDE; 42 43 virtual base::string16 GetUninstallLinkName() OVERRIDE; 44 45 virtual base::string16 GetUninstallRegPath() OVERRIDE; 46 47 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy() OVERRIDE; 48 49 virtual bool CanCreateDesktopShortcuts() OVERRIDE; 50 51 virtual bool GetCommandExecuteImplClsid( 52 base::string16* handler_class_uuid) OVERRIDE; 53 54 virtual void UpdateInstallStatus(bool system_install, 55 installer::ArchiveType archive_type, 56 installer::InstallStatus install_status) OVERRIDE; 57 58 protected: 59 friend class BrowserDistribution; 60 61 // Disallow construction from non-friends. 62 ChromeAppHostDistribution(); 63 }; 64 65 #endif // CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ 66