Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Side by Side Diff: chrome/browser/utility_process_host.cc

Issue 6805008: Remove RDH from UtilityProcessHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix presubmit. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser/utility_process_host.h" 5 #include "chrome/browser/utility_process_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/values.h" 10 #include "base/values.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 "content/common/indexed_db_key.h" 14 #include "content/common/indexed_db_key.h"
15 #include "content/common/serialized_script_value.h" 15 #include "content/common/serialized_script_value.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 #include "ui/base/ui_base_switches.h"
19 19
20 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, 20 UtilityProcessHost::UtilityProcessHost(Client* client,
21 Client* client,
22 BrowserThread::ID client_thread_id) 21 BrowserThread::ID client_thread_id)
23 : BrowserChildProcessHost(UTILITY_PROCESS, rdh), 22 : BrowserChildProcessHost(UTILITY_PROCESS, NULL),
24 client_(client), 23 client_(client),
25 client_thread_id_(client_thread_id), 24 client_thread_id_(client_thread_id),
26 is_batch_mode_(false) { 25 is_batch_mode_(false) {
27 } 26 }
28 27
29 UtilityProcessHost::~UtilityProcessHost() { 28 UtilityProcessHost::~UtilityProcessHost() {
30 DCHECK(!is_batch_mode_); 29 DCHECK(!is_batch_mode_);
31 } 30 }
32 31
33 bool UtilityProcessHost::StartExtensionUnpacker(const FilePath& extension) { 32 bool UtilityProcessHost::StartExtensionUnpacker(const FilePath& extension) {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 IPC_MESSAGE_HANDLER(UtilityHostMsg_InjectIDBKey_Finished, 225 IPC_MESSAGE_HANDLER(UtilityHostMsg_InjectIDBKey_Finished,
227 Client::OnInjectIDBKeyFinished) 226 Client::OnInjectIDBKeyFinished)
228 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseJSON_Succeeded, 227 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseJSON_Succeeded,
229 Client::OnJSONParseSucceeded) 228 Client::OnJSONParseSucceeded)
230 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseJSON_Failed, 229 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseJSON_Failed,
231 Client::OnJSONParseFailed) 230 Client::OnJSONParseFailed)
232 IPC_MESSAGE_UNHANDLED(handled = false) 231 IPC_MESSAGE_UNHANDLED(handled = false)
233 IPC_END_MESSAGE_MAP_EX() 232 IPC_END_MESSAGE_MAP_EX()
234 return handled; 233 return handled;
235 } 234 }
OLDNEW
« no previous file with comments | « chrome/browser/utility_process_host.h ('k') | chrome/browser/web_resource/web_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698