OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... | |
34 bool Equals(const ChannelInfo& other) const { | 34 bool Equals(const ChannelInfo& other) const { |
35 return value_ == other.value_; | 35 return value_ == other.value_; |
36 } | 36 } |
37 | 37 |
38 // Determines the update channel for the value. Possible |channel_name| | 38 // Determines the update channel for the value. Possible |channel_name| |
39 // results are the empty string (stable channel), "beta", and "dev". Returns | 39 // results are the empty string (stable channel), "beta", and "dev". Returns |
40 // false (without modifying |channel_name|) if the channel could not be | 40 // false (without modifying |channel_name|) if the channel could not be |
41 // determined. | 41 // determined. |
42 bool GetChannelName(std::wstring* channel_name) const; | 42 bool GetChannelName(std::wstring* channel_name) const; |
43 | 43 |
44 // Returns true if |this| and |other| have a common base (that which remains | |
45 // when all modifiers and suffixes are omitted). | |
robertshield
2011/01/20 23:36:34
|this| is somewhat unconventional. Replace with "t
grt (UTC plus 2)
2011/01/21 05:27:51
Done.
| |
46 bool EqualsBaseOf(const ChannelInfo& other) const; | |
47 | |
44 // Returns true if the -CEEE modifier is present in the value. | 48 // Returns true if the -CEEE modifier is present in the value. |
45 bool IsCeee() const; | 49 bool IsCeee() const; |
46 | 50 |
47 // Adds or removes the -CEEE modifier, returning true if the value is | 51 // Adds or removes the -CEEE modifier, returning true if the value is |
48 // modified. | 52 // modified. |
49 bool SetCeee(bool value); | 53 bool SetCeee(bool value); |
50 | 54 |
51 // Returns true if the -chrome modifier is present in the value. | 55 // Returns true if the -chrome modifier is present in the value. |
52 bool IsChrome() const; | 56 bool IsChrome() const; |
53 | 57 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 // modified. | 94 // modified. |
91 bool SetMultiFailSuffix(bool value); | 95 bool SetMultiFailSuffix(bool value); |
92 | 96 |
93 private: | 97 private: |
94 std::wstring value_; | 98 std::wstring value_; |
95 }; // class ChannelInfo | 99 }; // class ChannelInfo |
96 | 100 |
97 } // namespace installer | 101 } // namespace installer |
98 | 102 |
99 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ | 103 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ |
OLD | NEW |