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 14 matching lines...) Expand all Loading... |
25 // local_data_path is the path of the file containing json metrics that | 25 // local_data_path is the path of the file containing json metrics that |
26 // will be parsed. If this file indicates that the user has opted in to | 26 // will be parsed. If this file indicates that the user has opted in to |
27 // providing anonymous usage data, then some additional statistics will | 27 // providing anonymous usage data, then some additional statistics will |
28 // be added to the survey url. | 28 // be added to the survey url. |
29 // distribution_data contains Google Update related data that will be | 29 // distribution_data contains Google Update related data that will be |
30 // concatenated to the survey url if the file in local_data_path indicates | 30 // concatenated to the survey url if the file in local_data_path indicates |
31 // the user has opted in to providing anonymous usage data. | 31 // the user has opted in to providing anonymous usage data. |
32 virtual void DoPostUninstallOperations( | 32 virtual void DoPostUninstallOperations( |
33 const Version& version, | 33 const Version& version, |
34 const base::FilePath& local_data_path, | 34 const base::FilePath& local_data_path, |
35 const base::string16& distribution_data) OVERRIDE; | 35 const base::string16& distribution_data) override; |
36 | 36 |
37 virtual base::string16 GetActiveSetupGuid() OVERRIDE; | 37 virtual base::string16 GetActiveSetupGuid() override; |
38 | 38 |
39 virtual base::string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE; | 39 virtual base::string16 GetShortcutName(ShortcutType shortcut_type) override; |
40 | 40 |
41 virtual base::string16 GetIconFilename() OVERRIDE; | 41 virtual base::string16 GetIconFilename() override; |
42 | 42 |
43 virtual int GetIconIndex(ShortcutType shortcut_type) OVERRIDE; | 43 virtual int GetIconIndex(ShortcutType shortcut_type) override; |
44 | 44 |
45 virtual base::string16 GetBaseAppName() OVERRIDE; | 45 virtual base::string16 GetBaseAppName() override; |
46 | 46 |
47 virtual base::string16 GetBaseAppId() OVERRIDE; | 47 virtual base::string16 GetBaseAppId() override; |
48 | 48 |
49 virtual base::string16 GetBrowserProgIdPrefix() OVERRIDE; | 49 virtual base::string16 GetBrowserProgIdPrefix() override; |
50 | 50 |
51 virtual base::string16 GetBrowserProgIdDesc() OVERRIDE; | 51 virtual base::string16 GetBrowserProgIdDesc() override; |
52 | 52 |
53 virtual base::string16 GetInstallSubDir() OVERRIDE; | 53 virtual base::string16 GetInstallSubDir() override; |
54 | 54 |
55 virtual base::string16 GetPublisherName() OVERRIDE; | 55 virtual base::string16 GetPublisherName() override; |
56 | 56 |
57 virtual base::string16 GetAppDescription() OVERRIDE; | 57 virtual base::string16 GetAppDescription() override; |
58 | 58 |
59 virtual std::string GetSafeBrowsingName() OVERRIDE; | 59 virtual std::string GetSafeBrowsingName() override; |
60 | 60 |
61 virtual std::string GetNetworkStatsServer() const OVERRIDE; | 61 virtual std::string GetNetworkStatsServer() const override; |
62 | 62 |
63 // This method reads data from the Google Update ClientState key for | 63 // This method reads data from the Google Update ClientState key for |
64 // potential use in the uninstall survey. It must be called before the | 64 // potential use in the uninstall survey. It must be called before the |
65 // key returned by GetVersionKey() is deleted. | 65 // key returned by GetVersionKey() is deleted. |
66 virtual base::string16 GetDistributionData(HKEY root_key) OVERRIDE; | 66 virtual base::string16 GetDistributionData(HKEY root_key) override; |
67 | 67 |
68 virtual base::string16 GetUninstallLinkName() OVERRIDE; | 68 virtual base::string16 GetUninstallLinkName() override; |
69 | 69 |
70 virtual base::string16 GetUninstallRegPath() OVERRIDE; | 70 virtual base::string16 GetUninstallRegPath() override; |
71 | 71 |
72 virtual bool GetCommandExecuteImplClsid( | 72 virtual bool GetCommandExecuteImplClsid( |
73 base::string16* handler_class_uuid) OVERRIDE; | 73 base::string16* handler_class_uuid) override; |
74 | 74 |
75 virtual bool AppHostIsSupported() OVERRIDE; | 75 virtual bool AppHostIsSupported() override; |
76 | 76 |
77 virtual void UpdateInstallStatus( | 77 virtual void UpdateInstallStatus( |
78 bool system_install, | 78 bool system_install, |
79 installer::ArchiveType archive_type, | 79 installer::ArchiveType archive_type, |
80 installer::InstallStatus install_status) OVERRIDE; | 80 installer::InstallStatus install_status) override; |
81 | 81 |
82 virtual bool ShouldSetExperimentLabels() OVERRIDE; | 82 virtual bool ShouldSetExperimentLabels() override; |
83 | 83 |
84 virtual bool HasUserExperiments() OVERRIDE; | 84 virtual bool HasUserExperiments() override; |
85 | 85 |
86 protected: | 86 protected: |
87 // Disallow construction from others. | 87 // Disallow construction from others. |
88 GoogleChromeDistribution(); | 88 GoogleChromeDistribution(); |
89 | 89 |
90 explicit GoogleChromeDistribution( | 90 explicit GoogleChromeDistribution( |
91 scoped_ptr<AppRegistrationData> app_reg_data); | 91 scoped_ptr<AppRegistrationData> app_reg_data); |
92 | 92 |
93 private: | 93 private: |
94 friend class BrowserDistribution; | 94 friend class BrowserDistribution; |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ | 97 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ |
OLD | NEW |