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" | 14 #include "chrome/common/indexed_db_key.h" |
15 #include "chrome/common/utility_messages.h" | 15 #include "chrome/common/utility_messages.h" |
16 #include "ipc/ipc_switches.h" | 16 #include "ipc/ipc_switches.h" |
17 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 18 #include "ui/base/ui_base_switches.h" |
18 | 19 |
19 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, | 20 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, |
20 Client* client, | 21 Client* client, |
21 BrowserThread::ID client_thread_id) | 22 BrowserThread::ID client_thread_id) |
22 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), | 23 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), |
23 client_(client), | 24 client_(client), |
24 client_thread_id_(client_thread_id), | 25 client_thread_id_(client_thread_id), |
25 is_batch_mode_(false) { | 26 is_batch_mode_(false) { |
26 } | 27 } |
27 | 28 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, | 192 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, |
192 Client::OnDecodeImageFailed) | 193 Client::OnDecodeImageFailed) |
193 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, | 194 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, |
194 Client::OnIDBKeysFromValuesAndKeyPathSucceeded) | 195 Client::OnIDBKeysFromValuesAndKeyPathSucceeded) |
195 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, | 196 IPC_MESSAGE_HANDLER(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, |
196 Client::OnIDBKeysFromValuesAndKeyPathFailed) | 197 Client::OnIDBKeysFromValuesAndKeyPathFailed) |
197 IPC_MESSAGE_UNHANDLED(handled = false) | 198 IPC_MESSAGE_UNHANDLED(handled = false) |
198 IPC_END_MESSAGE_MAP_EX() | 199 IPC_END_MESSAGE_MAP_EX() |
199 return handled; | 200 return handled; |
200 } | 201 } |
OLD | NEW |