| 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 #include "chrome/utility/chrome_content_utility_client.h" | 5 #include "chrome/utility/chrome_content_utility_client.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.h" |
| 14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "chrome/browser/importer/importer.h" | 15 #include "chrome/browser/importer/importer.h" |
| 16 #include "chrome/browser/importer/profile_import_process_messages.h" | 16 #include "chrome/browser/importer/profile_import_process_messages.h" |
| 17 #include "chrome/common/child_process_logging.h" | 17 #include "chrome/common/child_process_logging.h" |
| 18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 19 #include "chrome/common/chrome_utility_messages.h" | 19 #include "chrome/common/chrome_utility_messages.h" |
| 20 #include "chrome/common/extensions/api/extension_action/browser_action_handler.h
" | 20 #include "chrome/common/extensions/api/extension_action/browser_action_handler.h
" |
| 21 #include "chrome/common/extensions/api/extension_action/page_action_handler.h" | 21 #include "chrome/common/extensions/api/extension_action/page_action_handler.h" |
| 22 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" | 22 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" |
| 23 #include "chrome/common/extensions/api/icons/icons_handler.h" | |
| 24 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 23 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
| 25 #include "chrome/common/extensions/api/themes/theme_handler.h" | 24 #include "chrome/common/extensions/api/themes/theme_handler.h" |
| 26 #include "chrome/common/extensions/background_info.h" | 25 #include "chrome/common/extensions/background_info.h" |
| 27 #include "chrome/common/extensions/extension.h" | 26 #include "chrome/common/extensions/extension.h" |
| 28 #include "chrome/common/extensions/extension_l10n_util.h" | 27 #include "chrome/common/extensions/extension_l10n_util.h" |
| 29 #include "chrome/common/extensions/incognito_handler.h" | 28 #include "chrome/common/extensions/incognito_handler.h" |
| 30 #include "chrome/common/extensions/manifest.h" | 29 #include "chrome/common/extensions/manifest.h" |
| 30 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
| 31 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" | 31 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" |
| 32 #include "chrome/common/extensions/unpacker.h" | 32 #include "chrome/common/extensions/unpacker.h" |
| 33 #include "chrome/common/extensions/update_manifest.h" | 33 #include "chrome/common/extensions/update_manifest.h" |
| 34 #include "chrome/common/safe_browsing/zip_analyzer.h" | 34 #include "chrome/common/safe_browsing/zip_analyzer.h" |
| 35 #include "chrome/common/web_resource/web_resource_unpacker.h" | 35 #include "chrome/common/web_resource/web_resource_unpacker.h" |
| 36 #include "chrome/utility/profile_import_handler.h" | 36 #include "chrome/utility/profile_import_handler.h" |
| 37 #include "components/zip/zip.h" | 37 #include "components/zip/zip.h" |
| 38 #include "content/public/utility/utility_thread.h" | 38 #include "content/public/utility/utility_thread.h" |
| 39 #include "printing/backend/print_backend.h" | 39 #include "printing/backend/print_backend.h" |
| 40 #include "printing/page_range.h" | 40 #include "printing/page_range.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 IPC::PlatformFileForTransit zip_file) { | 491 IPC::PlatformFileForTransit zip_file) { |
| 492 safe_browsing::zip_analyzer::Results results; | 492 safe_browsing::zip_analyzer::Results results; |
| 493 safe_browsing::zip_analyzer::AnalyzeZipFile( | 493 safe_browsing::zip_analyzer::AnalyzeZipFile( |
| 494 IPC::PlatformFileForTransitToPlatformFile(zip_file), &results); | 494 IPC::PlatformFileForTransitToPlatformFile(zip_file), &results); |
| 495 Send(new ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished( | 495 Send(new ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished( |
| 496 results)); | 496 results)); |
| 497 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); | 497 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); |
| 498 } | 498 } |
| 499 | 499 |
| 500 } // namespace chrome | 500 } // namespace chrome |
| OLD | NEW |