| 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_PRODUCT_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_H_ |
| 6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ | 6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool is_chrome() const { | 56 bool is_chrome() const { |
| 57 return distribution_->GetType() == BrowserDistribution::CHROME_BROWSER; | 57 return distribution_->GetType() == BrowserDistribution::CHROME_BROWSER; |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool is_chrome_frame() const { | 60 bool is_chrome_frame() const { |
| 61 return distribution_->GetType() == BrowserDistribution::CHROME_FRAME; | 61 return distribution_->GetType() == BrowserDistribution::CHROME_FRAME; |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool is_chrome_app_host() const { | |
| 65 return distribution_->GetType() == BrowserDistribution::CHROME_APP_HOST; | |
| 66 } | |
| 67 | |
| 68 bool is_chrome_binaries() const { | 64 bool is_chrome_binaries() const { |
| 69 return distribution_->GetType() == BrowserDistribution::CHROME_BINARIES; | 65 return distribution_->GetType() == BrowserDistribution::CHROME_BINARIES; |
| 70 } | 66 } |
| 71 | 67 |
| 72 bool HasOption(const std::wstring& option) const { | 68 bool HasOption(const std::wstring& option) const { |
| 73 return options_.find(option) != options_.end(); | 69 return options_.find(option) != options_.end(); |
| 74 } | 70 } |
| 75 | 71 |
| 76 // Returns true if the set of options is mutated by this operation. | 72 // Returns true if the set of options is mutated by this operation. |
| 77 bool SetOption(const std::wstring& option, bool set) { | 73 bool SetOption(const std::wstring& option, bool set) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 scoped_ptr<ProductOperations> operations_; | 132 scoped_ptr<ProductOperations> operations_; |
| 137 std::set<std::wstring> options_; | 133 std::set<std::wstring> options_; |
| 138 | 134 |
| 139 private: | 135 private: |
| 140 DISALLOW_COPY_AND_ASSIGN(Product); | 136 DISALLOW_COPY_AND_ASSIGN(Product); |
| 141 }; | 137 }; |
| 142 | 138 |
| 143 } // namespace installer | 139 } // namespace installer |
| 144 | 140 |
| 145 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ | 141 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ |
| OLD | NEW |