| 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_
|
|
|