OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHILD_PROCESS_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_CHILD_PROCESS_CONTEXT_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/mp/mp_child_process_context.h" |
| 10 #include "base/task.h" |
| 11 #include "base/tracked.h" |
| 12 |
| 13 class ChildProcessContext : public base::MpChildProcessContext { |
| 14 public: |
| 15 ChildProcessContext(); |
| 16 virtual int GetBadMessageResultCode(); |
| 17 virtual int GetNormalExitResultCode(); |
| 18 virtual std::string GenerateRandomChannelID(void* instance); |
| 19 virtual bool GetCurrentThreadIdentifier(int* id); |
| 20 virtual bool CurrentlyOnThread(int id); |
| 21 virtual bool PostTask(int identifier, |
| 22 const tracked_objects::Location& from_here, |
| 23 Task* task); |
| 24 virtual bool PostProcessLauncherTask( |
| 25 const tracked_objects::Location& from_here, |
| 26 Task* task); |
| 27 virtual base::ProcessHandle StartProcess( |
| 28 #if defined(OS_WIN) |
| 29 const FilePath& exposed_dir, |
| 30 #elif defined(OS_POSIX) |
| 31 bool use_zygote, |
| 32 const base::environment_vector& environ, |
| 33 int ipcfd, |
| 34 #endif |
| 35 CommandLine* cmd_line); |
| 36 virtual void EnsureProcessTerminated(base::ProcessHandle); |
| 37 virtual bool CheckProcessCrash(bool* child_exited, |
| 38 #if defined(OS_POSIX) |
| 39 bool use_zygote, |
| 40 #endif |
| 41 base::ProcessHandle handle); |
| 42 }; |
| 43 |
| 44 #endif // CHROME_BROWSER_CHILD_PROCESS_CONTEXT_H_ |
OLD | NEW |