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

Side by Side Diff: content/public/browser/browser_child_process_host.h

Issue 2201183003: Remove outgoing interface registry on RPH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
7 7
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/common/process_type.h" 14 #include "content/public/common/process_type.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 16
17 #if defined(OS_MACOSX) 17 #if defined(OS_MACOSX)
18 #include "base/process/port_provider_mac.h" 18 #include "base/process/port_provider_mac.h"
19 #endif 19 #endif
20 20
21 namespace base { 21 namespace base {
22 class CommandLine; 22 class CommandLine;
23 class FilePath; 23 class FilePath;
24 } 24 }
25 25
26 namespace shell { 26 namespace shell {
27 class InterfaceProvider; 27 class InterfaceProvider;
28 class InterfaceRegistry;
29 } 28 }
30 29
31 namespace content { 30 namespace content {
32 31
33 class BrowserChildProcessHostDelegate; 32 class BrowserChildProcessHostDelegate;
34 class ChildProcessHost; 33 class ChildProcessHost;
35 class SandboxedProcessLauncherDelegate; 34 class SandboxedProcessLauncherDelegate;
36 struct ChildProcessData; 35 struct ChildProcessData;
37 36
38 // This represents child processes of the browser process, i.e. plugins. They 37 // This represents child processes of the browser process, i.e. plugins. They
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Sets the user-visible name of the process. 85 // Sets the user-visible name of the process.
87 virtual void SetName(const base::string16& name) = 0; 86 virtual void SetName(const base::string16& name) = 0;
88 87
89 // Set the handle of the process. BrowserChildProcessHost will do this when 88 // Set the handle of the process. BrowserChildProcessHost will do this when
90 // the Launch method is used to start the process. However if the owner 89 // the Launch method is used to start the process. However if the owner
91 // of this object doesn't call Launch and starts the process in another way, 90 // of this object doesn't call Launch and starts the process in another way,
92 // they need to call this method so that the process handle is associated with 91 // they need to call this method so that the process handle is associated with
93 // this object. 92 // this object.
94 virtual void SetHandle(base::ProcessHandle handle) = 0; 93 virtual void SetHandle(base::ProcessHandle handle) = 0;
95 94
96 // Returns the shell::InterfaceRegistry the browser process uses to expose
97 // interfaces to the child.
98 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0;
99
100 // Returns the shell::InterfaceProvider the browser process can use to bind 95 // Returns the shell::InterfaceProvider the browser process can use to bind
101 // interfaces exposed to it from the child. 96 // interfaces exposed to it from the child.
102 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; 97 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
103 98
104 #if defined(OS_MACOSX) 99 #if defined(OS_MACOSX)
105 // Returns a PortProvider used to get the task port for child processes. 100 // Returns a PortProvider used to get the task port for child processes.
106 static base::PortProvider* GetPortProvider(); 101 static base::PortProvider* GetPortProvider();
107 #endif 102 #endif
108 }; 103 };
109 104
110 }; // namespace content 105 }; // namespace content
111 106
112 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 107 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/public/browser/browser_child_process_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698