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 "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/indexed_db_key.h" | |
15 #include "chrome/common/serialized_script_value.h" | |
16 #include "chrome/common/utility_messages.h" | 14 #include "chrome/common/utility_messages.h" |
| 15 #include "content/common/indexed_db_key.h" |
| 16 #include "content/common/serialized_script_value.h" |
17 #include "ipc/ipc_switches.h" | 17 #include "ipc/ipc_switches.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
19 #include "ui/base/ui_base_switches.h" | 19 #include "ui/base/ui_base_switches.h" |
20 | 20 |
21 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, | 21 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, |
22 Client* client, | 22 Client* client, |
23 BrowserThread::ID client_thread_id) | 23 BrowserThread::ID client_thread_id) |
24 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), | 24 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), |
25 client_(client), | 25 client_(client), |
26 client_thread_id_(client_thread_id), | 26 client_thread_id_(client_thread_id), |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, | 207 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, |
208 Client::OnIDBKeysFromValuesAndKeyPathSucceeded) | 208 Client::OnIDBKeysFromValuesAndKeyPathSucceeded) |
209 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, | 209 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, |
210 Client::OnIDBKeysFromValuesAndKeyPathFailed) | 210 Client::OnIDBKeysFromValuesAndKeyPathFailed) |
211 IPC_MESSAGE_HANDLER(UtilityHostMsg_InjectIDBKey_Finished, | 211 IPC_MESSAGE_HANDLER(UtilityHostMsg_InjectIDBKey_Finished, |
212 Client::OnInjectIDBKeyFinished) | 212 Client::OnInjectIDBKeyFinished) |
213 IPC_MESSAGE_UNHANDLED(handled = false) | 213 IPC_MESSAGE_UNHANDLED(handled = false) |
214 IPC_END_MESSAGE_MAP_EX() | 214 IPC_END_MESSAGE_MAP_EX() |
215 return handled; | 215 return handled; |
216 } | 216 } |
OLD | NEW |