| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| 11 #include "base/iat_patch.h" | 11 #include "base/iat_patch.h" |
| 12 #endif | 12 #endif |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/common/child_process.h" | 15 #include "chrome/common/child_process.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/extensions/extension_unpacker.h" | 17 #include "chrome/common/extensions/extension_unpacker.h" |
| 18 #include "chrome/common/extensions/update_manifest.h" | 18 #include "chrome/common/extensions/update_manifest.h" |
| 19 #include "chrome/common/indexed_db_key.h" | 19 #include "chrome/common/indexed_db_key.h" |
| 20 #include "chrome/common/serialized_script_value.h" |
| 20 #include "chrome/common/utility_messages.h" | 21 #include "chrome/common/utility_messages.h" |
| 21 #include "chrome/common/web_resource/web_resource_unpacker.h" | 22 #include "chrome/common/web_resource/web_resource_unpacker.h" |
| 22 #include "gfx/rect.h" | 23 #include "gfx/rect.h" |
| 23 #include "printing/native_metafile.h" | 24 #include "printing/native_metafile.h" |
| 24 #include "printing/page_range.h" | 25 #include "printing/page_range.h" |
| 25 #include "printing/units.h" | 26 #include "printing/units.h" |
| 26 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
| 27 #include "webkit/glue/idb_bindings.h" | 28 #include "webkit/glue/idb_bindings.h" |
| 28 #include "webkit/glue/image_decoder.h" | 29 #include "webkit/glue/image_decoder.h" |
| 29 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" | 30 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 299 } |
| 299 | 300 |
| 300 void UtilityThread::OnBatchModeFinished() { | 301 void UtilityThread::OnBatchModeFinished() { |
| 301 ChildProcess::current()->ReleaseProcess(); | 302 ChildProcess::current()->ReleaseProcess(); |
| 302 } | 303 } |
| 303 | 304 |
| 304 void UtilityThread::ReleaseProcessIfNeeded() { | 305 void UtilityThread::ReleaseProcessIfNeeded() { |
| 305 if (!batch_mode_) | 306 if (!batch_mode_) |
| 306 ChildProcess::current()->ReleaseProcess(); | 307 ChildProcess::current()->ReleaseProcess(); |
| 307 } | 308 } |
| OLD | NEW |