| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utility_thread.h" | 5 #include "chrome/utility/utility_thread.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/common/child_process.h" | 13 #include "chrome/common/child_process.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "chrome/common/extensions/extension_unpacker.h" | 15 #include "chrome/common/extensions/extension_unpacker.h" |
| 16 #include "chrome/common/extensions/update_manifest.h" | 16 #include "chrome/common/extensions/update_manifest.h" |
| 17 #include "chrome/common/indexed_db_key.h" | 17 #include "chrome/common/indexed_db_key.h" |
| 18 #include "chrome/common/serialized_script_value.h" | 18 #include "chrome/common/serialized_script_value.h" |
| 19 #include "chrome/common/utility_messages.h" | 19 #include "chrome/common/utility_messages.h" |
| 20 #include "chrome/common/web_resource/web_resource_unpacker.h" | 20 #include "chrome/common/web_resource/web_resource_unpacker.h" |
| 21 #include "gfx/rect.h" | |
| 22 #include "printing/native_metafile.h" | 21 #include "printing/native_metafile.h" |
| 23 #include "printing/page_range.h" | 22 #include "printing/page_range.h" |
| 24 #include "printing/units.h" | 23 #include "printing/units.h" |
| 25 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" |
| 26 #include "ui/gfx/rect.h" |
| 27 #include "webkit/glue/idb_bindings.h" | 27 #include "webkit/glue/idb_bindings.h" |
| 28 #include "webkit/glue/image_decoder.h" | 28 #include "webkit/glue/image_decoder.h" |
| 29 | 29 |
| 30 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
| 31 #include "app/win/iat_patch_function.h" | 31 #include "app/win/iat_patch_function.h" |
| 32 #include "base/win/scoped_handle.h" | 32 #include "base/win/scoped_handle.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 Send(new UtilityHostMsg_GetPrinterCapsAndDefaults_Failed(printer_name)); | 324 Send(new UtilityHostMsg_GetPrinterCapsAndDefaults_Failed(printer_name)); |
| 325 } | 325 } |
| 326 ReleaseProcessIfNeeded(); | 326 ReleaseProcessIfNeeded(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 void UtilityThread::ReleaseProcessIfNeeded() { | 329 void UtilityThread::ReleaseProcessIfNeeded() { |
| 330 if (!batch_mode_) | 330 if (!batch_mode_) |
| 331 ChildProcess::current()->ReleaseProcess(); | 331 ChildProcess::current()->ReleaseProcess(); |
| 332 } | 332 } |
| 333 | 333 |
| OLD | NEW |