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

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

Issue 2885017: Moved common parts of ChildProcessHost into chrome/common and created a Brows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Code review changes Created 10 years, 5 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
« no previous file with comments | « chrome/browser/utility_process_host.h ('k') | chrome/browser/worker_host/worker_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.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/utility_messages.h" 14 #include "chrome/common/utility_messages.h"
15 #include "ipc/ipc_switches.h" 15 #include "ipc/ipc_switches.h"
16 16
17 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh, 17 UtilityProcessHost::UtilityProcessHost(ResourceDispatcherHost* rdh,
18 Client* client, 18 Client* client,
19 ChromeThread::ID client_thread_id) 19 ChromeThread::ID client_thread_id)
20 : ChildProcessHost(UTILITY_PROCESS, rdh), 20 : BrowserChildProcessHost(UTILITY_PROCESS, rdh),
21 client_(client), 21 client_(client),
22 client_thread_id_(client_thread_id) { 22 client_thread_id_(client_thread_id) {
23 } 23 }
24 24
25 UtilityProcessHost::~UtilityProcessHost() { 25 UtilityProcessHost::~UtilityProcessHost() {
26 } 26 }
27 27
28 bool UtilityProcessHost::StartExtensionUnpacker(const FilePath& extension) { 28 bool UtilityProcessHost::StartExtensionUnpacker(const FilePath& extension) {
29 // Grant the subprocess access to the entire subdir the extension file is 29 // Grant the subprocess access to the entire subdir the extension file is
30 // in, so that it can unpack to that dir. 30 // in, so that it can unpack to that dir.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, 154 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded,
155 Client::OnParseUpdateManifestSucceeded) 155 Client::OnParseUpdateManifestSucceeded)
156 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, 156 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed,
157 Client::OnParseUpdateManifestFailed) 157 Client::OnParseUpdateManifestFailed)
158 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, 158 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded,
159 Client::OnDecodeImageSucceeded) 159 Client::OnDecodeImageSucceeded)
160 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, 160 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed,
161 Client::OnDecodeImageFailed) 161 Client::OnDecodeImageFailed)
162 IPC_END_MESSAGE_MAP_EX() 162 IPC_END_MESSAGE_MAP_EX()
163 } 163 }
OLDNEW
« no previous file with comments | « chrome/browser/utility_process_host.h ('k') | chrome/browser/worker_host/worker_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698