OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 26 matching lines...) Expand all Loading... |
37 bool Equals(const ChannelInfo& other) const { | 37 bool Equals(const ChannelInfo& other) const { |
38 return value_ == other.value_; | 38 return value_ == other.value_; |
39 } | 39 } |
40 | 40 |
41 // Determines the update channel for the value. Possible |channel_name| | 41 // Determines the update channel for the value. Possible |channel_name| |
42 // results are the empty string (stable channel), "beta", and "dev". Returns | 42 // results are the empty string (stable channel), "beta", and "dev". Returns |
43 // false (without modifying |channel_name|) if the channel could not be | 43 // false (without modifying |channel_name|) if the channel could not be |
44 // determined. | 44 // determined. |
45 bool GetChannelName(std::wstring* channel_name) const; | 45 bool GetChannelName(std::wstring* channel_name) const; |
46 | 46 |
47 // Returns true if the -CEEE modifier is present in the value. | |
48 bool IsCeee() const; | |
49 | |
50 // Adds or removes the -CEEE modifier, returning true if the value is | |
51 // modified. | |
52 bool SetCeee(bool value); | |
53 | |
54 // Returns true if the -chrome modifier is present in the value. | 47 // Returns true if the -chrome modifier is present in the value. |
55 bool IsChrome() const; | 48 bool IsChrome() const; |
56 | 49 |
57 // Adds or removes the -chrome modifier, returning true if the value is | 50 // Adds or removes the -chrome modifier, returning true if the value is |
58 // modified. | 51 // modified. |
59 bool SetChrome(bool value); | 52 bool SetChrome(bool value); |
60 | 53 |
61 // Returns true if the -chromeframe modifier is present in the value. | 54 // Returns true if the -chromeframe modifier is present in the value. |
62 bool IsChromeFrame() const; | 55 bool IsChromeFrame() const; |
63 | 56 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // modified. | 95 // modified. |
103 bool SetMultiFailSuffix(bool value); | 96 bool SetMultiFailSuffix(bool value); |
104 | 97 |
105 private: | 98 private: |
106 std::wstring value_; | 99 std::wstring value_; |
107 }; // class ChannelInfo | 100 }; // class ChannelInfo |
108 | 101 |
109 } // namespace installer | 102 } // namespace installer |
110 | 103 |
111 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ | 104 #endif // CHROME_INSTALLER_UTIL_CHANNEL_INFO_H_ |
OLD | NEW |