| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ | 5 #ifndef CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
| 6 #define CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ | 6 #define CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // This mode's index into the brand's array of install modes. This will match | 65 // This mode's index into the brand's array of install modes. This will match |
| 66 // a brand-specific InstallConstantIndex enumerator. | 66 // a brand-specific InstallConstantIndex enumerator. |
| 67 int install_mode_index() const { return payload_->mode->index; } | 67 int install_mode_index() const { return payload_->mode->index; } |
| 68 | 68 |
| 69 // The mode's install suffix (e.g., " SxS" for canary Chrome), or an empty | 69 // The mode's install suffix (e.g., " SxS" for canary Chrome), or an empty |
| 70 // string for a brand's primary install mode. | 70 // string for a brand's primary install mode. |
| 71 const wchar_t* install_suffix() const { | 71 const wchar_t* install_suffix() const { |
| 72 return payload_->mode->install_suffix; | 72 return payload_->mode->install_suffix; |
| 73 } | 73 } |
| 74 | 74 |
| 75 const InstallConstants& mode() const { return *payload_->mode; } |
| 76 |
| 75 // The app GUID with which this mode is registered with Google Update, or an | 77 // The app GUID with which this mode is registered with Google Update, or an |
| 76 // empty string if this brand does not integrate with Google Update. | 78 // empty string if this brand does not integrate with Google Update. |
| 77 const wchar_t* app_guid() const { return payload_->mode->app_guid; } | 79 const wchar_t* app_guid() const { return payload_->mode->app_guid; } |
| 78 | 80 |
| 79 // True if the mode supports installation at system-level. | 81 // True if the mode supports installation at system-level. |
| 80 bool supports_system_level() const { | 82 bool supports_system_level() const { |
| 81 return payload_->mode->supports_system_level; | 83 return payload_->mode->supports_system_level; |
| 82 } | 84 } |
| 83 | 85 |
| 84 // True if the mode supports multi-install. | 86 // True if the mode supports multi-install. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 165 } |
| 164 | 166 |
| 165 private: | 167 private: |
| 166 std::wstring channel_; | 168 std::wstring channel_; |
| 167 Payload payload_ = Payload(); | 169 Payload payload_ = Payload(); |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 } // namespace install_static | 172 } // namespace install_static |
| 171 | 173 |
| 172 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ | 174 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
| OLD | NEW |