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

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

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 13 matching lines...) Expand all
24 #include "content/public/common/child_process_host_delegate.h" 24 #include "content/public/common/child_process_host_delegate.h"
25 25
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 #include "base/win/object_watcher.h" 27 #include "base/win/object_watcher.h"
28 #endif 28 #endif
29 29
30 namespace base { 30 namespace base {
31 class CommandLine; 31 class CommandLine;
32 } 32 }
33 33
34 namespace shell {
35 class InterfaceProvider;
36 class InterfaceRegistry;
37 }
38
34 namespace content { 39 namespace content {
35 40
36 class BrowserChildProcessHostIterator; 41 class BrowserChildProcessHostIterator;
37 class BrowserChildProcessObserver; 42 class BrowserChildProcessObserver;
38 class BrowserMessageFilter; 43 class BrowserMessageFilter;
39 class ServiceRegistry;
40 44
41 // Plugins/workers and other child processes that live on the IO thread use this 45 // Plugins/workers and other child processes that live on the IO thread use this
42 // class. RenderProcessHostImpl is the main exception that doesn't use this 46 // class. RenderProcessHostImpl is the main exception that doesn't use this
43 /// class because it lives on the UI thread. 47 /// class because it lives on the UI thread.
44 class CONTENT_EXPORT BrowserChildProcessHostImpl 48 class CONTENT_EXPORT BrowserChildProcessHostImpl
45 : public BrowserChildProcessHost, 49 : public BrowserChildProcessHost,
46 public NON_EXPORTED_BASE(ChildProcessHostDelegate), 50 public NON_EXPORTED_BASE(ChildProcessHostDelegate),
47 #if defined(OS_WIN) 51 #if defined(OS_WIN)
48 public base::win::ObjectWatcher::Delegate, 52 public base::win::ObjectWatcher::Delegate,
49 #endif 53 #endif
(...skipping 17 matching lines...) Expand all
67 bool Send(IPC::Message* message) override; 71 bool Send(IPC::Message* message) override;
68 void Launch(SandboxedProcessLauncherDelegate* delegate, 72 void Launch(SandboxedProcessLauncherDelegate* delegate,
69 base::CommandLine* cmd_line, 73 base::CommandLine* cmd_line,
70 bool terminate_on_shutdown) override; 74 bool terminate_on_shutdown) override;
71 const ChildProcessData& GetData() const override; 75 const ChildProcessData& GetData() const override;
72 ChildProcessHost* GetHost() const override; 76 ChildProcessHost* GetHost() const override;
73 base::TerminationStatus GetTerminationStatus(bool known_dead, 77 base::TerminationStatus GetTerminationStatus(bool known_dead,
74 int* exit_code) override; 78 int* exit_code) override;
75 void SetName(const base::string16& name) override; 79 void SetName(const base::string16& name) override;
76 void SetHandle(base::ProcessHandle handle) override; 80 void SetHandle(base::ProcessHandle handle) override;
77 ServiceRegistry* GetServiceRegistry() override; 81 shell::InterfaceRegistry* GetInterfaceRegistry() override;
82 shell::InterfaceProvider* GetRemoteInterfaces() override;
78 83
79 // ChildProcessHostDelegate implementation: 84 // ChildProcessHostDelegate implementation:
80 bool CanShutdown() override; 85 bool CanShutdown() override;
81 void OnChildDisconnected() override; 86 void OnChildDisconnected() override;
82 const base::Process& GetProcess() const override; 87 const base::Process& GetProcess() const override;
83 bool OnMessageReceived(const IPC::Message& message) override; 88 bool OnMessageReceived(const IPC::Message& message) override;
84 void OnChannelConnected(int32_t peer_pid) override; 89 void OnChannelConnected(int32_t peer_pid) override;
85 void OnChannelError() override; 90 void OnChannelError() override;
86 void OnBadMessageReceived(const IPC::Message& message) override; 91 void OnBadMessageReceived(const IPC::Message& message) override;
87 92
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 153
149 bool is_channel_connected_; 154 bool is_channel_connected_;
150 bool notify_child_disconnected_; 155 bool notify_child_disconnected_;
151 156
152 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; 157 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_;
153 }; 158 };
154 159
155 } // namespace content 160 } // namespace content
156 161
157 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 162 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698