| 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 #ifndef CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ |
| 6 #define CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ | 6 #define CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // removes the -stage: modifier (otherwise), returning true if the value is | 83 // removes the -stage: modifier (otherwise), returning true if the value is |
| 84 // modified. | 84 // modified. |
| 85 bool SetStage(const wchar_t* stage); | 85 bool SetStage(const wchar_t* stage); |
| 86 | 86 |
| 87 // Returns the string identifying the current stage, or an empty string if the | 87 // Returns the string identifying the current stage, or an empty string if the |
| 88 // -stage: modifier is not present in the value. | 88 // -stage: modifier is not present in the value. |
| 89 base::string16 GetStage() const; | 89 base::string16 GetStage() const; |
| 90 | 90 |
| 91 // Returns the string identifying the stats default state (i.e., the starting | 91 // Returns the string identifying the stats default state (i.e., the starting |
| 92 // value of the "send usage stats" checkbox during install), or an empty | 92 // value of the "send usage stats" checkbox during install), or an empty |
| 93 // string if the -statsdef: modifier is not present in the value. | 93 // string if the -statsdef= modifier is not present in the value. |
| 94 base::string16 GetStatsDefault() const; | 94 base::string16 GetStatsDefault() const; |
| 95 | 95 |
| 96 // Returns true if the -full suffix is present in the value. | 96 // Returns true if the -full suffix is present in the value. |
| 97 bool HasFullSuffix() const; | 97 bool HasFullSuffix() const; |
| 98 | 98 |
| 99 // Adds or removes the -full suffix, returning true if the value is | 99 // Adds or removes the -full suffix, returning true if the value is |
| 100 // modified. | 100 // modified. |
| 101 bool SetFullSuffix(bool value); | 101 bool SetFullSuffix(bool value); |
| 102 | 102 |
| 103 // Returns true if the -multifail suffix is present in the value. | 103 // Returns true if the -multifail suffix is present in the value. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 118 // becomes 2.0-dev. Returns true if the value is modified. | 118 // becomes 2.0-dev. Returns true if the value is modified. |
| 119 bool RemoveAllModifiersAndSuffixes(); | 119 bool RemoveAllModifiersAndSuffixes(); |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 base::string16 value_; | 122 base::string16 value_; |
| 123 }; // class ChannelInfo | 123 }; // class ChannelInfo |
| 124 | 124 |
| 125 } // namespace installer | 125 } // namespace installer |
| 126 | 126 |
| 127 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ | 127 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ |
| OLD | NEW |