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

Side by Side Diff: chrome/browser/browser_child_process_host.h

Issue 4985001: Initial audio implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « no previous file | chrome/browser/browser_child_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
6 #define CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Derived classes call this to launch the child process asynchronously. 66 // Derived classes call this to launch the child process asynchronously.
67 void Launch( 67 void Launch(
68 #if defined(OS_WIN) 68 #if defined(OS_WIN)
69 const FilePath& exposed_dir, 69 const FilePath& exposed_dir,
70 #elif defined(OS_POSIX) 70 #elif defined(OS_POSIX)
71 bool use_zygote, 71 bool use_zygote,
72 const base::environment_vector& environ, 72 const base::environment_vector& environ,
73 #endif 73 #endif
74 CommandLine* cmd_line); 74 CommandLine* cmd_line);
75 75
76 // Returns the handle of the child process. This must be called only after
77 // OnProcessLaunched is called or it will be invalid and may crash.
78 base::ProcessHandle GetChildProcessHandle() const;
79
76 // ChildProcessLauncher::Client implementation. 80 // ChildProcessLauncher::Client implementation.
77 virtual void OnProcessLaunched() { } 81 virtual void OnProcessLaunched() { }
78 82
79 // Derived classes can override this to know if the process crashed. 83 // Derived classes can override this to know if the process crashed.
80 virtual void OnProcessCrashed() {} 84 virtual void OnProcessCrashed() {}
81 85
82 virtual bool DidChildCrash(); 86 virtual bool DidChildCrash();
83 87
84 // Overrides from ChildProcessHost 88 // Overrides from ChildProcessHost
85 virtual void OnChildDied(); 89 virtual void OnChildDied();
(...skipping 15 matching lines...) Expand all
101 BrowserChildProcessHost* host_; 105 BrowserChildProcessHost* host_;
102 }; 106 };
103 ClientHook client_; 107 ClientHook client_;
104 // May be NULL if this current process has no resource dispatcher host. 108 // May be NULL if this current process has no resource dispatcher host.
105 ResourceDispatcherHost* resource_dispatcher_host_; 109 ResourceDispatcherHost* resource_dispatcher_host_;
106 scoped_ptr<ChildProcessLauncher> child_process_; 110 scoped_ptr<ChildProcessLauncher> child_process_;
107 }; 111 };
108 112
109 #endif // CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 113 #endif // CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
110 114
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698