OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser/utility_process_host.h" | 5 #include "chrome/browser/utility_process_host.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/common/utility_messages.h" | 13 #include "chrome/common/utility_messages.h" |
14 #include "ipc/ipc_switches.h" | 14 #include "ipc/ipc_switches.h" |
| 15 #include "third_party/skia/include/core/SkBitmap.h" |
15 | 16 |
16 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, | 17 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, |
17 Client* client, | 18 Client* client, |
18 ChromeThread::ID client_thread_id) | 19 ChromeThread::ID client_thread_id) |
19 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), | 20 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), |
20 client_(client), | 21 client_(client), |
21 client_thread_id_(client_thread_id), | 22 client_thread_id_(client_thread_id), |
22 is_batch_mode_(false) { | 23 is_batch_mode_(false) { |
23 } | 24 } |
24 | 25 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, | 187 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, |
187 Client::OnDecodeImageSucceeded) | 188 Client::OnDecodeImageSucceeded) |
188 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, | 189 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, |
189 Client::OnDecodeImageFailed) | 190 Client::OnDecodeImageFailed) |
190 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, | 191 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, |
191 Client::OnIDBKeysFromValuesAndKeyPathSucceeded) | 192 Client::OnIDBKeysFromValuesAndKeyPathSucceeded) |
192 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, | 193 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, |
193 Client::OnIDBKeysFromValuesAndKeyPathFailed) | 194 Client::OnIDBKeysFromValuesAndKeyPathFailed) |
194 IPC_END_MESSAGE_MAP_EX() | 195 IPC_END_MESSAGE_MAP_EX() |
195 } | 196 } |
OLD | NEW |