OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 12 #include "base/task.h" |
12 #include "chrome/browser/extensions/extension_install_ui.h" | 13 #include "chrome/browser/extensions/extension_install_ui.h" |
13 #include "chrome/browser/extensions/extensions_service.h" | 14 #include "chrome/browser/extensions/extensions_service.h" |
14 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" | 15 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" |
15 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
16 | 17 |
17 class SkBitmap; | 18 class SkBitmap; |
18 | 19 |
19 // This class installs a crx file into a profile. | 20 // This class installs a crx file into a profile. |
20 // | 21 // |
21 // Installing a CRX is a multi-step process, including unpacking the crx, | 22 // Installing a CRX is a multi-step process, including unpacking the crx, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 bool apps_require_extension_mime_type_; | 204 bool apps_require_extension_mime_type_; |
204 | 205 |
205 // The value of the content type header sent with the CRX. | 206 // The value of the content type header sent with the CRX. |
206 // Ignorred unless |require_extension_mime_type_| is true. | 207 // Ignorred unless |require_extension_mime_type_| is true. |
207 std::string original_mime_type_; | 208 std::string original_mime_type_; |
208 | 209 |
209 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 210 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
210 }; | 211 }; |
211 | 212 |
212 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 213 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |