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 |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // Called if the process failed to launch. In this case the process never | 32 // Called if the process failed to launch. In this case the process never |
33 // started so the code here is a platform specific error code. | 33 // started so the code here is a platform specific error code. |
34 virtual void OnProcessLaunchFailed(int error_code) {} | 34 virtual void OnProcessLaunchFailed(int error_code) {} |
35 | 35 |
36 // Called if the process crashed. |exit_code| is the status returned when the | 36 // Called if the process crashed. |exit_code| is the status returned when the |
37 // process crashed (for posix, as returned from waitpid(), for Windows, as | 37 // process crashed (for posix, as returned from waitpid(), for Windows, as |
38 // returned from GetExitCodeProcess()). | 38 // returned from GetExitCodeProcess()). |
39 virtual void OnProcessCrashed(int exit_code) {} | 39 virtual void OnProcessCrashed(int exit_code) {} |
40 | 40 |
41 // Returns the shell::InterfaceRegistry the browser process uses to expose | |
42 // interfaces to the child. | |
43 virtual shell::InterfaceRegistry* GetInterfaceRegistry(); | |
44 | |
45 // Returns the shell::InterfaceProvider the browser process can use to bind | 41 // Returns the shell::InterfaceProvider the browser process can use to bind |
46 // interfaces exposed to it from the child. | 42 // interfaces exposed to it from the child. |
47 virtual shell::InterfaceProvider* GetRemoteInterfaces(); | 43 virtual shell::InterfaceProvider* GetRemoteInterfaces(); |
48 }; | 44 }; |
49 | 45 |
50 }; // namespace content | 46 }; // namespace content |
51 | 47 |
52 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ | 48 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ |
OLD | NEW |