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 | |
77 // The app GUID with which this mode is registered with Google Update, or an | 75 // The app GUID with which this mode is registered with Google Update, or an |
78 // empty string if this brand does not integrate with Google Update. | 76 // empty string if this brand does not integrate with Google Update. |
79 const wchar_t* app_guid() const { return payload_->mode->app_guid; } | 77 const wchar_t* app_guid() const { return payload_->mode->app_guid; } |
80 | 78 |
81 // True if the mode supports installation at system-level. | 79 // True if the mode supports installation at system-level. |
82 bool supports_system_level() const { | 80 bool supports_system_level() const { |
83 return payload_->mode->supports_system_level; | 81 return payload_->mode->supports_system_level; |
84 } | 82 } |
85 | 83 |
86 // True if the mode supports multi-install. | 84 // True if the mode supports multi-install. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 163 } |
166 | 164 |
167 private: | 165 private: |
168 std::wstring channel_; | 166 std::wstring channel_; |
169 Payload payload_ = Payload(); | 167 Payload payload_ = Payload(); |
170 }; | 168 }; |
171 | 169 |
172 } // namespace install_static | 170 } // namespace install_static |
173 | 171 |
174 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ | 172 #endif // CHROME_INSTALL_STATIC_INSTALL_DETAILS_H_ |
OLD | NEW |