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

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

Issue 12662019: Split the ProcessType enum into process types that content knows about (which will remain in src\co… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
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"
(...skipping 12 matching lines...) Expand all
23 23
24 // Plugins/workers and other child processes that live on the IO thread use this 24 // Plugins/workers and other child processes that live on the IO thread use this
25 // class. RenderProcessHostImpl is the main exception that doesn't use this 25 // class. RenderProcessHostImpl is the main exception that doesn't use this
26 /// class because it lives on the UI thread. 26 /// class because it lives on the UI thread.
27 class CONTENT_EXPORT BrowserChildProcessHostImpl 27 class CONTENT_EXPORT BrowserChildProcessHostImpl
28 : public BrowserChildProcessHost, 28 : public BrowserChildProcessHost,
29 public NON_EXPORTED_BASE(ChildProcessHostDelegate), 29 public NON_EXPORTED_BASE(ChildProcessHostDelegate),
30 public ChildProcessLauncher::Client { 30 public ChildProcessLauncher::Client {
31 public: 31 public:
32 BrowserChildProcessHostImpl( 32 BrowserChildProcessHostImpl(
33 ProcessType type, 33 int process_type,
34 BrowserChildProcessHostDelegate* delegate); 34 BrowserChildProcessHostDelegate* delegate);
35 virtual ~BrowserChildProcessHostImpl(); 35 virtual ~BrowserChildProcessHostImpl();
36 36
37 // Terminates all child processes and deletes each BrowserChildProcessHost 37 // Terminates all child processes and deletes each BrowserChildProcessHost
38 // instance. 38 // instance.
39 static void TerminateAll(); 39 static void TerminateAll();
40 40
41 // BrowserChildProcessHost implementation: 41 // BrowserChildProcessHost implementation:
42 virtual bool Send(IPC::Message* message) OVERRIDE; 42 virtual bool Send(IPC::Message* message) OVERRIDE;
43 virtual void Launch( 43 virtual void Launch(
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Watches to see if the child process exits before the IPC channel has 105 // Watches to see if the child process exits before the IPC channel has
106 // been connected. Thereafter, its exit is determined by an error on the 106 // been connected. Thereafter, its exit is determined by an error on the
107 // IPC channel. 107 // IPC channel.
108 base::WaitableEventWatcher early_exit_watcher_; 108 base::WaitableEventWatcher early_exit_watcher_;
109 #endif 109 #endif
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698