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 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 void set_install_wait_for_idle(bool val) { | 189 void set_install_wait_for_idle(bool val) { |
190 install_wait_for_idle_ = val; | 190 install_wait_for_idle_ = val; |
191 } | 191 } |
192 | 192 |
193 bool did_handle_successfully() const { return did_handle_successfully_; } | 193 bool did_handle_successfully() const { return did_handle_successfully_; } |
194 | 194 |
195 Profile* profile() { return installer_.profile(); } | 195 Profile* profile() { return installer_.profile(); } |
196 | 196 |
197 const Extension* extension() { return installer_.extension(); } | 197 const Extension* extension() { return installer_.extension().get(); } |
198 | 198 |
199 private: | 199 private: |
200 friend class ::ExtensionServiceTest; | 200 friend class ::ExtensionServiceTest; |
201 friend class ExtensionUpdaterTest; | 201 friend class ExtensionUpdaterTest; |
202 friend class ExtensionCrxInstallerTest; | 202 friend class ExtensionCrxInstallerTest; |
203 | 203 |
204 CrxInstaller(base::WeakPtr<ExtensionService> service_weak, | 204 CrxInstaller(base::WeakPtr<ExtensionService> service_weak, |
205 ExtensionInstallPrompt* client, | 205 ExtensionInstallPrompt* client, |
206 const WebstoreInstaller::Approval* approval); | 206 const WebstoreInstaller::Approval* approval); |
207 virtual ~CrxInstaller(); | 207 virtual ~CrxInstaller(); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 // Gives access to common methods and data of an extension installer. | 395 // Gives access to common methods and data of an extension installer. |
396 ExtensionInstaller installer_; | 396 ExtensionInstaller installer_; |
397 | 397 |
398 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 398 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
399 }; | 399 }; |
400 | 400 |
401 } // namespace extensions | 401 } // namespace extensions |
402 | 402 |
403 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 403 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |