| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #if !defined(OS_ANDROID) | 33 #if !defined(OS_ANDROID) |
| 34 #include "chrome/common/resource_usage_reporter.mojom.h" | 34 #include "chrome/common/resource_usage_reporter.mojom.h" |
| 35 #include "chrome/utility/profile_import_handler.h" | 35 #include "chrome/utility/profile_import_handler.h" |
| 36 #include "mojo/public/cpp/bindings/strong_binding.h" | 36 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 37 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" | 37 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" |
| 38 #include "net/proxy/proxy_resolver_v8.h" | 38 #include "net/proxy/proxy_resolver_v8.h" |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
| 42 #include "chrome/utility/font_cache_handler_win.h" | |
| 43 #include "chrome/utility/shell_handler_win.h" | 42 #include "chrome/utility/shell_handler_win.h" |
| 44 #endif | 43 #endif |
| 45 | 44 |
| 46 #if defined(ENABLE_EXTENSIONS) | 45 #if defined(ENABLE_EXTENSIONS) |
| 47 #include "chrome/utility/extensions/extensions_handler.h" | 46 #include "chrome/utility/extensions/extensions_handler.h" |
| 48 #include "chrome/utility/image_writer/image_writer_handler.h" | 47 #include "chrome/utility/image_writer/image_writer_handler.h" |
| 49 #endif | 48 #endif |
| 50 | 49 |
| 51 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN) | 50 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN) |
| 52 #include "chrome/utility/printing_handler.h" | 51 #include "chrome/utility/printing_handler.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 130 |
| 132 #if defined(ENABLE_MDNS) | 131 #if defined(ENABLE_MDNS) |
| 133 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 132 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 134 switches::kUtilityProcessEnableMDns)) { | 133 switches::kUtilityProcessEnableMDns)) { |
| 135 handlers_.push_back(new local_discovery::ServiceDiscoveryMessageHandler()); | 134 handlers_.push_back(new local_discovery::ServiceDiscoveryMessageHandler()); |
| 136 } | 135 } |
| 137 #endif | 136 #endif |
| 138 | 137 |
| 139 #if defined(OS_WIN) | 138 #if defined(OS_WIN) |
| 140 handlers_.push_back(new ShellHandler()); | 139 handlers_.push_back(new ShellHandler()); |
| 141 handlers_.push_back(new FontCacheHandler()); | |
| 142 #endif | 140 #endif |
| 143 | 141 |
| 144 handlers_.push_back(new SafeJsonParserHandler()); | 142 handlers_.push_back(new SafeJsonParserHandler()); |
| 145 } | 143 } |
| 146 | 144 |
| 147 ChromeContentUtilityClient::~ChromeContentUtilityClient() { | 145 ChromeContentUtilityClient::~ChromeContentUtilityClient() { |
| 148 } | 146 } |
| 149 | 147 |
| 150 void ChromeContentUtilityClient::UtilityThreadStarted() { | 148 void ChromeContentUtilityClient::UtilityThreadStarted() { |
| 151 #if defined(ENABLE_EXTENSIONS) | 149 #if defined(ENABLE_EXTENSIONS) |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 safe_browsing::zip_analyzer::Results results; | 396 safe_browsing::zip_analyzer::Results results; |
| 399 safe_browsing::dmg::AnalyzeDMGFile( | 397 safe_browsing::dmg::AnalyzeDMGFile( |
| 400 IPC::PlatformFileForTransitToFile(dmg_file), &results); | 398 IPC::PlatformFileForTransitToFile(dmg_file), &results); |
| 401 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( | 399 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( |
| 402 results)); | 400 results)); |
| 403 ReleaseProcessIfNeeded(); | 401 ReleaseProcessIfNeeded(); |
| 404 } | 402 } |
| 405 #endif // defined(OS_MACOSX) | 403 #endif // defined(OS_MACOSX) |
| 406 | 404 |
| 407 #endif // defined(FULL_SAFE_BROWSING) | 405 #endif // defined(FULL_SAFE_BROWSING) |
| OLD | NEW |