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 base::string16 GetAppGuid() OVERRIDE; |
17 | 17 |
18 virtual string16 GetDisplayName() OVERRIDE; | 18 virtual base::string16 GetDisplayName() OVERRIDE; |
19 | 19 |
20 virtual string16 GetBrowserProgIdPrefix() OVERRIDE; | 20 virtual base::string16 GetBrowserProgIdPrefix() OVERRIDE; |
21 | 21 |
22 virtual string16 GetBrowserProgIdDesc() OVERRIDE; | 22 virtual base::string16 GetBrowserProgIdDesc() OVERRIDE; |
23 | 23 |
24 // This can only be called with SHORTCUT_APP_LAUNCHER for |shortcut_type|. | 24 // This can only be called with SHORTCUT_APP_LAUNCHER for |shortcut_type|. |
25 virtual string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE; | 25 virtual base::string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE; |
26 | 26 |
27 virtual string16 GetIconFilename() OVERRIDE; | 27 virtual base::string16 GetIconFilename() OVERRIDE; |
28 | 28 |
29 virtual string16 GetBaseAppName() OVERRIDE; | 29 virtual base::string16 GetBaseAppName() OVERRIDE; |
30 | 30 |
31 virtual string16 GetBaseAppId() OVERRIDE; | 31 virtual base::string16 GetBaseAppId() OVERRIDE; |
32 | 32 |
33 virtual string16 GetInstallSubDir() OVERRIDE; | 33 virtual base::string16 GetInstallSubDir() OVERRIDE; |
34 | 34 |
35 virtual string16 GetPublisherName() OVERRIDE; | 35 virtual base::string16 GetPublisherName() OVERRIDE; |
36 | 36 |
37 virtual string16 GetAppDescription() OVERRIDE; | 37 virtual base::string16 GetAppDescription() OVERRIDE; |
38 | 38 |
39 virtual string16 GetLongAppDescription() OVERRIDE; | 39 virtual base::string16 GetLongAppDescription() OVERRIDE; |
40 | 40 |
41 virtual std::string GetSafeBrowsingName() OVERRIDE; | 41 virtual std::string GetSafeBrowsingName() OVERRIDE; |
42 | 42 |
43 virtual string16 GetStateKey() OVERRIDE; | 43 virtual base::string16 GetStateKey() OVERRIDE; |
44 | 44 |
45 virtual string16 GetStateMediumKey() OVERRIDE; | 45 virtual base::string16 GetStateMediumKey() OVERRIDE; |
46 | 46 |
47 virtual std::string GetNetworkStatsServer() const OVERRIDE; | 47 virtual std::string GetNetworkStatsServer() const OVERRIDE; |
48 | 48 |
49 virtual std::string GetHttpPipeliningTestServer() const OVERRIDE; | 49 virtual std::string GetHttpPipeliningTestServer() const OVERRIDE; |
50 | 50 |
51 virtual string16 GetUninstallLinkName() OVERRIDE; | 51 virtual base::string16 GetUninstallLinkName() OVERRIDE; |
52 | 52 |
53 virtual string16 GetUninstallRegPath() OVERRIDE; | 53 virtual base::string16 GetUninstallRegPath() OVERRIDE; |
54 | 54 |
55 virtual string16 GetVersionKey() OVERRIDE; | 55 virtual base::string16 GetVersionKey() OVERRIDE; |
56 | 56 |
57 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy() OVERRIDE; | 57 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy() OVERRIDE; |
58 | 58 |
59 virtual bool CanCreateDesktopShortcuts() OVERRIDE; | 59 virtual bool CanCreateDesktopShortcuts() OVERRIDE; |
60 | 60 |
61 virtual bool GetCommandExecuteImplClsid( | 61 virtual bool GetCommandExecuteImplClsid( |
62 string16* handler_class_uuid) OVERRIDE; | 62 base::string16* handler_class_uuid) OVERRIDE; |
63 | 63 |
64 virtual void UpdateInstallStatus(bool system_install, | 64 virtual void UpdateInstallStatus(bool system_install, |
65 installer::ArchiveType archive_type, | 65 installer::ArchiveType archive_type, |
66 installer::InstallStatus install_status) OVERRIDE; | 66 installer::InstallStatus install_status) OVERRIDE; |
67 | 67 |
68 protected: | 68 protected: |
69 friend class BrowserDistribution; | 69 friend class BrowserDistribution; |
70 | 70 |
71 // Disallow construction from non-friends. | 71 // Disallow construction from non-friends. |
72 ChromeAppHostDistribution(); | 72 ChromeAppHostDistribution(); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ | 75 #endif // CHROME_INSTALLER_UTIL_CHROME_APP_HOST_DISTRIBUTION_H_ |
OLD | NEW |