summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_child_process_host.h
blob: 27432293779de61ef22e713028bbe7d697f57c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_SERVICE_SERVICE_CHILD_PROCESS_HOST_H_
#define CHROME_SERVICE_SERVICE_CHILD_PROCESS_HOST_H_
#pragma once

#include "base/process.h"
#include "chrome/common/child_process_host.h"
#include "chrome/common/child_process_info.h"


// Plugins/workers and other child processes that live on the IO thread should
// derive from this class.
//
class ServiceChildProcessHost : public ChildProcessHost,
                                public ChildProcessInfo {
 public:
  virtual ~ServiceChildProcessHost();

 protected:
  explicit ServiceChildProcessHost(ProcessType type);
  // Derived classes call this to launch the child process synchronously.
  // TODO(sanjeevr): Determine whether we need to make the launch asynchronous.
  bool Launch(CommandLine* cmd_line);
};

#endif  // CHROME_SERVICE_SERVICE_CHILD_PROCESS_HOST_H_