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 declares a class that contains various method related to branding. | 5 // This file declares a class that contains various method related to branding. |
6 | 6 |
7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual std::wstring GetVersionKey(); | 109 virtual std::wstring GetVersionKey(); |
110 | 110 |
111 virtual bool CanSetAsDefault(); | 111 virtual bool CanSetAsDefault(); |
112 | 112 |
113 virtual bool CanCreateDesktopShortcuts(); | 113 virtual bool CanCreateDesktopShortcuts(); |
114 | 114 |
115 virtual int GetIconIndex(); | 115 virtual int GetIconIndex(); |
116 | 116 |
117 virtual bool GetChromeChannel(std::wstring* channel); | 117 virtual bool GetChromeChannel(std::wstring* channel); |
118 | 118 |
| 119 // Returns true if the distribution includes a DelegateExecute verb handler, |
| 120 // and provides the COM registration data if so: |
| 121 // |handler_class_uuid| is the CommandExecuteImpl class UUID. |
| 122 // |type_lib_uuid| and |type_lib_version| identify its type library. |
| 123 // |interface_uuid| is the ICommandExecuteImpl interface UUID. |
| 124 virtual bool GetDelegateExecuteHandlerData(string16* handler_class_uuid, |
| 125 string16* type_lib_uuid, |
| 126 string16* type_lib_version, |
| 127 string16* interface_uuid); |
| 128 |
119 virtual void UpdateInstallStatus(bool system_install, | 129 virtual void UpdateInstallStatus(bool system_install, |
120 installer::ArchiveType archive_type, | 130 installer::ArchiveType archive_type, |
121 installer::InstallStatus install_status); | 131 installer::InstallStatus install_status); |
122 | 132 |
123 // Gets the experiment details for a given language-brand combo. If |flavor| | 133 // Gets the experiment details for a given language-brand combo. If |flavor| |
124 // is -1, then a flavor will be selected at random. |experiment| is the struct | 134 // is -1, then a flavor will be selected at random. |experiment| is the struct |
125 // you want to write the experiment information to. Returns false if no | 135 // you want to write the experiment information to. Returns false if no |
126 // experiment details could be gathered. | 136 // experiment details could be gathered. |
127 virtual bool GetExperimentDetails(UserExperiment* experiment, int flavor); | 137 virtual bool GetExperimentDetails(UserExperiment* experiment, int flavor); |
128 | 138 |
(...skipping 22 matching lines...) Expand all Loading... |
151 | 161 |
152 const Type type_; | 162 const Type type_; |
153 | 163 |
154 private: | 164 private: |
155 BrowserDistribution(); | 165 BrowserDistribution(); |
156 | 166 |
157 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); | 167 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); |
158 }; | 168 }; |
159 | 169 |
160 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ | 170 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ |
OLD | NEW |