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_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 page_ordinal_ = page_ordinal; | 191 page_ordinal_ = page_ordinal; |
192 } | 192 } |
193 | 193 |
194 void set_error_on_unsupported_requirements(bool val) { | 194 void set_error_on_unsupported_requirements(bool val) { |
195 error_on_unsupported_requirements_ = val; | 195 error_on_unsupported_requirements_ = val; |
196 } | 196 } |
197 | 197 |
198 void set_install_immediately(bool val) { | 198 void set_install_immediately(bool val) { |
199 set_install_flag(kInstallFlagInstallImmediately, val); | 199 set_install_flag(kInstallFlagInstallImmediately, val); |
200 } | 200 } |
201 void set_is_ephemeral(bool val) { | |
202 set_install_flag(kInstallFlagIsEphemeral, val); | |
203 } | |
204 void set_do_not_sync(bool val) { | 201 void set_do_not_sync(bool val) { |
205 set_install_flag(kInstallFlagDoNotSync, val); | 202 set_install_flag(kInstallFlagDoNotSync, val); |
206 } | 203 } |
207 | 204 |
208 bool did_handle_successfully() const { return did_handle_successfully_; } | 205 bool did_handle_successfully() const { return did_handle_successfully_; } |
209 | 206 |
210 Profile* profile() { return install_checker_.profile(); } | 207 Profile* profile() { return install_checker_.profile(); } |
211 | 208 |
212 const Extension* extension() { return install_checker_.extension().get(); } | 209 const Extension* extension() { return install_checker_.extension().get(); } |
213 | 210 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 439 |
443 // Performs requirements, policy and blacklist checks on the extension. | 440 // Performs requirements, policy and blacklist checks on the extension. |
444 ExtensionInstallChecker install_checker_; | 441 ExtensionInstallChecker install_checker_; |
445 | 442 |
446 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 443 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
447 }; | 444 }; |
448 | 445 |
449 } // namespace extensions | 446 } // namespace extensions |
450 | 447 |
451 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 448 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |