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

Unified Diff: chrome/browser/child_process_context.h

Issue 1625015: Refactor ChildProcess and related classes to create a framework outside of br... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/child_process_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/child_process_context.h
===================================================================
--- chrome/browser/child_process_context.h (revision 0)
+++ chrome/browser/child_process_context.h (revision 0)
@@ -0,0 +1,44 @@
+// 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_BROWSER_CHILD_PROCESS_CONTEXT_H_
+#define CHROME_BROWSER_CHILD_PROCESS_CONTEXT_H_
+
+#include "base/basictypes.h"
+#include "base/mp/mp_child_process_context.h"
+#include "base/task.h"
+#include "base/tracked.h"
+
+class ChildProcessContext : public base::MpChildProcessContext {
+ public:
+ ChildProcessContext();
+ virtual int GetBadMessageResultCode();
+ virtual int GetNormalExitResultCode();
+ virtual std::string GenerateRandomChannelID(void* instance);
+ virtual bool GetCurrentThreadIdentifier(int* id);
+ virtual bool CurrentlyOnThread(int id);
+ virtual bool PostTask(int identifier,
+ const tracked_objects::Location& from_here,
+ Task* task);
+ virtual bool PostProcessLauncherTask(
+ const tracked_objects::Location& from_here,
+ Task* task);
+ virtual base::ProcessHandle StartProcess(
+#if defined(OS_WIN)
+ const FilePath& exposed_dir,
+#elif defined(OS_POSIX)
+ bool use_zygote,
+ const base::environment_vector& environ,
+ int ipcfd,
+#endif
+ CommandLine* cmd_line);
+ virtual void EnsureProcessTerminated(base::ProcessHandle);
+ virtual bool CheckProcessCrash(bool* child_exited,
+#if defined(OS_POSIX)
+ bool use_zygote,
+#endif
+ base::ProcessHandle handle);
+};
+
+#endif // CHROME_BROWSER_CHILD_PROCESS_CONTEXT_H_
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/child_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698