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/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "chrome/common/extensions/extension_unpacker.h" | 14 #include "chrome/common/extensions/extension_unpacker.h" |
15 #include "chrome/common/extensions/update_manifest.h" | 15 #include "chrome/common/extensions/update_manifest.h" |
16 #include "chrome/common/indexed_db_key.h" | |
17 #include "chrome/common/serialized_script_value.h" | |
18 #include "chrome/common/utility_messages.h" | 16 #include "chrome/common/utility_messages.h" |
19 #include "chrome/common/web_resource/web_resource_unpacker.h" | 17 #include "chrome/common/web_resource/web_resource_unpacker.h" |
20 #include "content/common/child_process.h" | 18 #include "content/common/child_process.h" |
| 19 #include "content/common/indexed_db_key.h" |
| 20 #include "content/common/serialized_script_value.h" |
21 #include "printing/page_range.h" | 21 #include "printing/page_range.h" |
22 #include "printing/units.h" | 22 #include "printing/units.h" |
23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" |
25 #include "ui/gfx/rect.h" | 25 #include "ui/gfx/rect.h" |
26 #include "webkit/glue/idb_bindings.h" | 26 #include "webkit/glue/idb_bindings.h" |
27 #include "webkit/glue/image_decoder.h" | 27 #include "webkit/glue/image_decoder.h" |
28 | 28 |
29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
30 #include "app/win/iat_patch_function.h" | 30 #include "app/win/iat_patch_function.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } else { | 339 } else { |
340 Send(new UtilityHostMsg_GetPrinterCapsAndDefaults_Failed(printer_name)); | 340 Send(new UtilityHostMsg_GetPrinterCapsAndDefaults_Failed(printer_name)); |
341 } | 341 } |
342 ReleaseProcessIfNeeded(); | 342 ReleaseProcessIfNeeded(); |
343 } | 343 } |
344 | 344 |
345 void UtilityThread::ReleaseProcessIfNeeded() { | 345 void UtilityThread::ReleaseProcessIfNeeded() { |
346 if (!batch_mode_) | 346 if (!batch_mode_) |
347 ChildProcess::current()->ReleaseProcess(); | 347 ChildProcess::current()->ReleaseProcess(); |
348 } | 348 } |
OLD | NEW |