| 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" | |
| 13 #include "chrome/browser/extensions/extension_install_ui.h" | 12 #include "chrome/browser/extensions/extension_install_ui.h" |
| 14 #include "chrome/browser/extensions/extensions_service.h" | 13 #include "chrome/browser/extensions/extensions_service.h" |
| 15 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" | 14 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" |
| 16 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
| 17 | 16 |
| 18 class SkBitmap; | 17 class SkBitmap; |
| 19 | 18 |
| 20 // This class installs a crx file into a profile. | 19 // This class installs a crx file into a profile. |
| 21 // | 20 // |
| 22 // Installing a CRX is a multi-step process, including unpacking the crx, | 21 // 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... |
| 204 bool apps_require_extension_mime_type_; | 203 bool apps_require_extension_mime_type_; |
| 205 | 204 |
| 206 // The value of the content type header sent with the CRX. | 205 // The value of the content type header sent with the CRX. |
| 207 // Ignorred unless |require_extension_mime_type_| is true. | 206 // Ignorred unless |require_extension_mime_type_| is true. |
| 208 std::string original_mime_type_; | 207 std::string original_mime_type_; |
| 209 | 208 |
| 210 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 209 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
| 211 }; | 210 }; |
| 212 | 211 |
| 213 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 212 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
| OLD | NEW |