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

Side by Side Diff: content/browser/browser_child_process_host_impl.h

Issue 10787027: Cleanup: Add a note to BrowserChildProcessHost::Launch(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | content/public/browser/browser_child_process_host.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/process.h" 12 #include "base/process.h"
13 #include "content/browser/child_process_launcher.h" 13 #include "content/browser/child_process_launcher.h"
14 #include "content/public/browser/browser_child_process_host.h" 14 #include "content/public/browser/browser_child_process_host.h"
15 #include "content/public/browser/child_process_data.h" 15 #include "content/public/browser/child_process_data.h"
16 #include "content/public/common/child_process_host_delegate.h" 16 #include "content/public/common/child_process_host_delegate.h"
17 17
18 namespace content { 18 namespace content {
19 class BrowserChildProcessHostIterator; 19 class BrowserChildProcessHostIterator;
20 } 20 }
21 21
22 // Plugins/workers and other child processes that live on the IO thread use this 22 // Plugins/workers and other child processes that live on the IO thread use this
23 // class. RenderProcessHostImpl is the main exception that doesn't use this 23 // class. RenderProcessHostImpl is the main exception that doesn't use this
24 /// class because it lives on the UI thread. 24 /// class because it lives on the UI thread.
25 class CONTENT_EXPORT BrowserChildProcessHostImpl : 25 class CONTENT_EXPORT BrowserChildProcessHostImpl
26 public content::BrowserChildProcessHost, 26 : public content::BrowserChildProcessHost,
27 public NON_EXPORTED_BASE(content::ChildProcessHostDelegate), 27 public NON_EXPORTED_BASE(content::ChildProcessHostDelegate),
28 public ChildProcessLauncher::Client { 28 public ChildProcessLauncher::Client {
29 public: 29 public:
30 BrowserChildProcessHostImpl( 30 BrowserChildProcessHostImpl(
31 content::ProcessType type, 31 content::ProcessType type,
32 content::BrowserChildProcessHostDelegate* delegate); 32 content::BrowserChildProcessHostDelegate* delegate);
33 virtual ~BrowserChildProcessHostImpl(); 33 virtual ~BrowserChildProcessHostImpl();
34 34
35 // Terminates all child processes and deletes each BrowserChildProcessHost 35 // Terminates all child processes and deletes each BrowserChildProcessHost
36 // instance. 36 // instance.
37 static void TerminateAll(); 37 static void TerminateAll();
38 38
39 // BrowserChildProcessHostImpl implementation: 39 // BrowserChildProcessHost implementation:
40 virtual bool Send(IPC::Message* message) OVERRIDE; 40 virtual bool Send(IPC::Message* message) OVERRIDE;
41 virtual void Launch( 41 virtual void Launch(
42 #if defined(OS_WIN) 42 #if defined(OS_WIN)
43 const FilePath& exposed_dir, 43 const FilePath& exposed_dir,
44 #elif defined(OS_POSIX) 44 #elif defined(OS_POSIX)
45 bool use_zygote, 45 bool use_zygote,
46 const base::EnvironmentVector& environ, 46 const base::EnvironmentVector& environ,
47 #endif 47 #endif
48 CommandLine* cmd_line) OVERRIDE; 48 CommandLine* cmd_line) OVERRIDE;
49 virtual const content::ChildProcessData& GetData() const OVERRIDE; 49 virtual const content::ChildProcessData& GetData() const OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void OnProcessLaunched() OVERRIDE; 87 virtual void OnProcessLaunched() OVERRIDE;
88 88
89 content::ChildProcessData data_; 89 content::ChildProcessData data_;
90 content::BrowserChildProcessHostDelegate* delegate_; 90 content::BrowserChildProcessHostDelegate* delegate_;
91 scoped_ptr<content::ChildProcessHost> child_process_host_; 91 scoped_ptr<content::ChildProcessHost> child_process_host_;
92 92
93 scoped_ptr<ChildProcessLauncher> child_process_; 93 scoped_ptr<ChildProcessLauncher> child_process_;
94 }; 94 };
95 95
96 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 96 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/browser/browser_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698