summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_child_process_host.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 00:15:43 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 00:15:43 +0000
commit130954003bdd03f9c3ae563a2ed67466528e71c5 (patch)
treec59200233fd6fdaeec0c6279efa5fdba2493f402 /chrome/service/service_child_process_host.h
parent8a871374acb440a7d35a7b6c10840c7a2f712b65 (diff)
downloadchromium_src-130954003bdd03f9c3ae563a2ed67466528e71c5.zip
chromium_src-130954003bdd03f9c3ae563a2ed67466528e71c5.tar.gz
chromium_src-130954003bdd03f9c3ae563a2ed67466528e71c5.tar.bz2
Created a host for running the utility process as a child of the service process. This is used for rendering PDFs to a metafile in a sandbox for the Cloud Print proxy on Windows.
BUG=None TEST=Test Windows Cloud Print proxy Review URL: http://codereview.chromium.org/2917013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_child_process_host.h')
-rw-r--r--chrome/service/service_child_process_host.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/service/service_child_process_host.h b/chrome/service/service_child_process_host.h
new file mode 100644
index 0000000..bfc833b
--- /dev/null
+++ b/chrome/service/service_child_process_host.h
@@ -0,0 +1,29 @@
+// 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_
+
+#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_
+