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 17 matching lines...) Expand all Loading... |
28 // providing anonymous usage data, then some additional statistics will | 28 // providing anonymous usage data, then some additional statistics will |
29 // be added to the survey url. | 29 // be added to the survey url. |
30 // distribution_data contains Google Update related data that will be | 30 // distribution_data contains Google Update related data that will be |
31 // concatenated to the survey url if the file in local_data_path indicates | 31 // concatenated to the survey url if the file in local_data_path indicates |
32 // the user has opted in to providing anonymous usage data. | 32 // the user has opted in to providing anonymous usage data. |
33 void DoPostUninstallOperations( | 33 void DoPostUninstallOperations( |
34 const base::Version& version, | 34 const base::Version& version, |
35 const base::FilePath& local_data_path, | 35 const base::FilePath& local_data_path, |
36 const base::string16& distribution_data) override; | 36 const base::string16& distribution_data) override; |
37 | 37 |
38 base::string16 GetShortcutName() override; | |
39 | |
40 base::string16 GetBaseAppName() override; | |
41 | |
42 base::string16 GetPublisherName() override; | 38 base::string16 GetPublisherName() override; |
43 | 39 |
44 base::string16 GetAppDescription() override; | 40 base::string16 GetAppDescription() override; |
45 | 41 |
46 std::string GetSafeBrowsingName() override; | 42 std::string GetSafeBrowsingName() override; |
47 | 43 |
48 // This method reads data from the Google Update ClientState key for | 44 // This method reads data from the Google Update ClientState key for |
49 // potential use in the uninstall survey. It must be called before the | 45 // potential use in the uninstall survey. It must be called before the |
50 // key returned by GetVersionKey() is deleted. | 46 // key returned by GetVersionKey() is deleted. |
51 base::string16 GetDistributionData(HKEY root_key) override; | 47 base::string16 GetDistributionData(HKEY root_key) override; |
52 | 48 |
53 void UpdateInstallStatus( | 49 void UpdateInstallStatus( |
54 bool system_install, | 50 bool system_install, |
55 installer::ArchiveType archive_type, | 51 installer::ArchiveType archive_type, |
56 installer::InstallStatus install_status) override; | 52 installer::InstallStatus install_status) override; |
57 | 53 |
58 protected: | 54 protected: |
59 // Disallow construction from others. | 55 // Disallow construction from others. |
60 GoogleChromeDistribution(); | 56 GoogleChromeDistribution(); |
61 | 57 |
62 explicit GoogleChromeDistribution( | 58 explicit GoogleChromeDistribution( |
63 std::unique_ptr<AppRegistrationData> app_reg_data); | 59 std::unique_ptr<AppRegistrationData> app_reg_data); |
64 | 60 |
65 private: | 61 private: |
66 friend class BrowserDistribution; | 62 friend class BrowserDistribution; |
67 }; | 63 }; |
68 | 64 |
69 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 65 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
OLD | NEW |