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

Side by Side Diff: chrome/browser/service/service_process_control.cc

Issue 8787004: Make ChildProcessHost be used through an interface in content/public, instead of by inheritence. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/service/service_process_control.h" 5 #include "chrome/browser/service/service_process_control.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/process_util.h" 11 #include "base/process_util.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/upgrade_detector.h" 16 #include "chrome/browser/upgrade_detector.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/service_messages.h" 19 #include "chrome/common/service_messages.h"
20 #include "chrome/common/service_process_util.h" 20 #include "chrome/common/service_process_util.h"
21 #include "content/common/child_process_host.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
23 #include "content/public/common/child_process_host.h"
24 #include "ui/base/ui_base_switches.h" 24 #include "ui/base/ui_base_switches.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 using content::ChildProcessHost;
27 28
28 // ServiceProcessControl implementation. 29 // ServiceProcessControl implementation.
29 ServiceProcessControl::ServiceProcessControl() { 30 ServiceProcessControl::ServiceProcessControl() {
30 } 31 }
31 32
32 ServiceProcessControl::~ServiceProcessControl() { 33 ServiceProcessControl::~ServiceProcessControl() {
33 } 34 }
34 35
35 void ServiceProcessControl::ConnectInternal() { 36 void ServiceProcessControl::ConnectInternal() {
36 // If the channel has already been established then we run the task 37 // If the channel has already been established then we run the task
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 if (base::LaunchProcess(*cmd_line_, options, NULL)) { 314 if (base::LaunchProcess(*cmd_line_, options, NULL)) {
314 BrowserThread::PostTask( 315 BrowserThread::PostTask(
315 BrowserThread::IO, FROM_HERE, 316 BrowserThread::IO, FROM_HERE,
316 base::Bind(&Launcher::DoDetectLaunched, this)); 317 base::Bind(&Launcher::DoDetectLaunched, this));
317 } else { 318 } else {
318 BrowserThread::PostTask( 319 BrowserThread::PostTask(
319 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this)); 320 BrowserThread::UI, FROM_HERE, base::Bind(&Launcher::Notify, this));
320 } 321 }
321 } 322 }
322 #endif // !OS_MACOSX 323 #endif // !OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.cc ('k') | chrome/service/service_utility_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698