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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/child_process_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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