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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 return install_source_; | 104 return install_source_; |
105 } | 105 } |
106 void set_install_source(extensions::Extension::Location source) { | 106 void set_install_source(extensions::Extension::Location source) { |
107 install_source_ = source; | 107 install_source_ = source; |
108 } | 108 } |
109 | 109 |
110 const std::string& expected_id() const { return expected_id_; } | 110 const std::string& expected_id() const { return expected_id_; } |
111 void set_expected_id(const std::string& val) { expected_id_ = val; } | 111 void set_expected_id(const std::string& val) { expected_id_ = val; } |
112 | 112 |
113 void set_expected_version(const Version& val) { | 113 void set_expected_version(const Version& val) { |
114 expected_version_.reset(val.Clone()); | 114 expected_version_.reset(new Version(val)); |
115 } | 115 } |
116 | 116 |
117 bool delete_source() const { return delete_source_; } | 117 bool delete_source() const { return delete_source_; } |
118 void set_delete_source(bool val) { delete_source_ = val; } | 118 void set_delete_source(bool val) { delete_source_ = val; } |
119 | 119 |
120 bool allow_silent_install() const { return allow_silent_install_; } | 120 bool allow_silent_install() const { return allow_silent_install_; } |
121 void set_allow_silent_install(bool val) { allow_silent_install_ = val; } | 121 void set_allow_silent_install(bool val) { allow_silent_install_ = val; } |
122 | 122 |
123 bool is_gallery_install() const { | 123 bool is_gallery_install() const { |
124 return (creation_flags_ & extensions::Extension::FROM_WEBSTORE) > 0; | 124 return (creation_flags_ & extensions::Extension::FROM_WEBSTORE) > 0; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // indicate to the client whether the file should be removed and any UI | 334 // indicate to the client whether the file should be removed and any UI |
335 // initiating the installation can be removed. This is different than whether | 335 // initiating the installation can be removed. This is different than whether |
336 // there was an error; if there was an error that rejects installation we | 336 // there was an error; if there was an error that rejects installation we |
337 // still consider the installation 'handled'. | 337 // still consider the installation 'handled'. |
338 bool did_handle_successfully_; | 338 bool did_handle_successfully_; |
339 | 339 |
340 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 340 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
341 }; | 341 }; |
342 | 342 |
343 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 343 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |