| 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 generic BrowserDistribution class to declare Google Chrome | 5 // This file extends generic BrowserDistribution class to declare Google Chrome |
| 6 // specific implementation. | 6 // specific implementation. |
| 7 | 7 |
| 8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
| 9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const Version& version, | 31 const Version& version, |
| 32 const base::FilePath& local_data_path, | 32 const base::FilePath& local_data_path, |
| 33 const string16& distribution_data) OVERRIDE; | 33 const string16& distribution_data) OVERRIDE; |
| 34 | 34 |
| 35 virtual string16 GetActiveSetupGuid() OVERRIDE; | 35 virtual string16 GetActiveSetupGuid() OVERRIDE; |
| 36 | 36 |
| 37 virtual string16 GetAppGuid() OVERRIDE; | 37 virtual string16 GetAppGuid() OVERRIDE; |
| 38 | 38 |
| 39 virtual string16 GetBaseAppName() OVERRIDE; | 39 virtual string16 GetBaseAppName() OVERRIDE; |
| 40 | 40 |
| 41 virtual string16 GetAppShortCutName() OVERRIDE; | |
| 42 | |
| 43 virtual string16 GetAlternateApplicationName() OVERRIDE; | |
| 44 | |
| 45 virtual string16 GetBaseAppId() OVERRIDE; | 41 virtual string16 GetBaseAppId() OVERRIDE; |
| 46 | 42 |
| 47 virtual string16 GetInstallSubDir() OVERRIDE; | 43 virtual string16 GetInstallSubDir() OVERRIDE; |
| 48 | 44 |
| 49 virtual string16 GetPublisherName() OVERRIDE; | 45 virtual string16 GetPublisherName() OVERRIDE; |
| 50 | 46 |
| 51 virtual string16 GetAppDescription() OVERRIDE; | 47 virtual string16 GetAppDescription() OVERRIDE; |
| 52 | 48 |
| 53 virtual std::string GetSafeBrowsingName() OVERRIDE; | 49 virtual std::string GetSafeBrowsingName() OVERRIDE; |
| 54 | 50 |
| 55 virtual string16 GetStateKey() OVERRIDE; | 51 virtual string16 GetStateKey() OVERRIDE; |
| 56 | 52 |
| 57 virtual string16 GetStateMediumKey() OVERRIDE; | 53 virtual string16 GetStateMediumKey() OVERRIDE; |
| 58 | 54 |
| 59 virtual std::string GetNetworkStatsServer() const OVERRIDE; | 55 virtual std::string GetNetworkStatsServer() const OVERRIDE; |
| 60 | 56 |
| 61 virtual std::string GetHttpPipeliningTestServer() const OVERRIDE; | 57 virtual std::string GetHttpPipeliningTestServer() const OVERRIDE; |
| 62 | 58 |
| 63 // This method reads data from the Google Update ClientState key for | 59 // This method reads data from the Google Update ClientState key for |
| 64 // potential use in the uninstall survey. It must be called before the | 60 // potential use in the uninstall survey. It must be called before the |
| 65 // key returned by GetVersionKey() is deleted. | 61 // key returned by GetVersionKey() is deleted. |
| 66 virtual string16 GetDistributionData(HKEY root_key) OVERRIDE; | 62 virtual string16 GetDistributionData(HKEY root_key) OVERRIDE; |
| 67 | 63 |
| 68 virtual string16 GetUninstallLinkName() OVERRIDE; | 64 virtual string16 GetUninstallLinkName() OVERRIDE; |
| 69 | 65 |
| 70 virtual string16 GetUninstallRegPath() OVERRIDE; | 66 virtual string16 GetUninstallRegPath() OVERRIDE; |
| 71 | 67 |
| 72 virtual string16 GetVersionKey() OVERRIDE; | 68 virtual string16 GetVersionKey() OVERRIDE; |
| 73 | 69 |
| 74 virtual string16 GetIconFilename() OVERRIDE; | |
| 75 | |
| 76 virtual bool GetCommandExecuteImplClsid( | 70 virtual bool GetCommandExecuteImplClsid( |
| 77 string16* handler_class_uuid) OVERRIDE; | 71 string16* handler_class_uuid) OVERRIDE; |
| 78 | 72 |
| 79 virtual bool AppHostIsSupported() OVERRIDE; | 73 virtual bool AppHostIsSupported() OVERRIDE; |
| 80 | 74 |
| 81 virtual void UpdateInstallStatus( | 75 virtual void UpdateInstallStatus( |
| 82 bool system_install, | 76 bool system_install, |
| 83 installer::ArchiveType archive_type, | 77 installer::ArchiveType archive_type, |
| 84 installer::InstallStatus install_status) OVERRIDE; | 78 installer::InstallStatus install_status) OVERRIDE; |
| 85 | 79 |
| 86 virtual bool ShouldSetExperimentLabels() OVERRIDE; | 80 virtual bool ShouldSetExperimentLabels() OVERRIDE; |
| 87 | 81 |
| 88 virtual bool HasUserExperiments() OVERRIDE; | 82 virtual bool HasUserExperiments() OVERRIDE; |
| 89 | 83 |
| 90 const string16& product_guid() { return product_guid_; } | 84 const string16& product_guid() { return product_guid_; } |
| 91 | 85 |
| 92 protected: | 86 protected: |
| 93 void set_product_guid(const string16& guid) { product_guid_ = guid; } | 87 void set_product_guid(const string16& guid) { product_guid_ = guid; } |
| 94 | 88 |
| 89 virtual string16 GetAlternateApplicationName() OVERRIDE; |
| 90 |
| 91 virtual string16 GetAppShortCutName() OVERRIDE; |
| 92 |
| 93 virtual string16 GetIconFilename() OVERRIDE; |
| 94 |
| 95 virtual int GetAppListIconIndex() OVERRIDE; |
| 96 |
| 95 // Disallow construction from others. | 97 // Disallow construction from others. |
| 96 GoogleChromeDistribution(); | 98 GoogleChromeDistribution(); |
| 97 | 99 |
| 98 private: | 100 private: |
| 99 friend class BrowserDistribution; | 101 friend class BrowserDistribution; |
| 100 | 102 |
| 101 // The product ID for Google Update. | 103 // The product ID for Google Update. |
| 102 string16 product_guid_; | 104 string16 product_guid_; |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 107 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
| OLD | NEW |