OLD | NEW |
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_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "ipc/ipc_listener.h" | 9 #include "ipc/ipc_listener.h" |
10 | 10 |
11 namespace shell { | 11 namespace shell { |
12 class InterfaceProvider; | 12 class InterfaceProvider; |
13 class InterfaceRegistry; | |
14 } | 13 } |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 | 16 |
18 // Interface that all users of BrowserChildProcessHost need to provide. | 17 // Interface that all users of BrowserChildProcessHost need to provide. |
19 class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener { | 18 class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener { |
20 public: | 19 public: |
21 ~BrowserChildProcessHostDelegate() override {} | 20 ~BrowserChildProcessHostDelegate() override {} |
22 | 21 |
23 // Delegates return true if it's ok to shut down the child process (which is | 22 // Delegates return true if it's ok to shut down the child process (which is |
(...skipping 15 matching lines...) Expand all Loading... |
39 virtual void OnProcessCrashed(int exit_code) {} | 38 virtual void OnProcessCrashed(int exit_code) {} |
40 | 39 |
41 // Returns the shell::InterfaceProvider the browser process can use to bind | 40 // Returns the shell::InterfaceProvider the browser process can use to bind |
42 // interfaces exposed to it from the child. | 41 // interfaces exposed to it from the child. |
43 virtual shell::InterfaceProvider* GetRemoteInterfaces(); | 42 virtual shell::InterfaceProvider* GetRemoteInterfaces(); |
44 }; | 43 }; |
45 | 44 |
46 }; // namespace content | 45 }; // namespace content |
47 | 46 |
48 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ | 47 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ |
OLD | NEW |