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

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

Issue 2230283003: Revert of Establish MojoChildConnection from BrowserChildProcessHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-channel
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_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 {
12 class InterfaceProvider;
13 }
14
11 namespace content { 15 namespace content {
12 16
13 // Interface that all users of BrowserChildProcessHost need to provide. 17 // Interface that all users of BrowserChildProcessHost need to provide.
14 class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener { 18 class CONTENT_EXPORT BrowserChildProcessHostDelegate : public IPC::Listener {
15 public: 19 public:
16 ~BrowserChildProcessHostDelegate() override {} 20 ~BrowserChildProcessHostDelegate() override {}
17 21
18 // 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
19 // the default return value). The exception is if the host is in the middle of 23 // the default return value). The exception is if the host is in the middle of
20 // sending a request to the process, in which case the other side might think 24 // sending a request to the process, in which case the other side might think
21 // it's ok to shutdown, when really it's not. 25 // it's ok to shutdown, when really it's not.
22 virtual bool CanShutdown(); 26 virtual bool CanShutdown();
23 27
24 // Called when the process has been started. 28 // Called when the process has been started.
25 virtual void OnProcessLaunched() {} 29 virtual void OnProcessLaunched() {}
26 30
27 // Called if the process failed to launch. In this case the process never 31 // Called if the process failed to launch. In this case the process never
28 // started so the code here is a platform specific error code. 32 // started so the code here is a platform specific error code.
29 virtual void OnProcessLaunchFailed(int error_code) {} 33 virtual void OnProcessLaunchFailed(int error_code) {}
30 34
31 // Called if the process crashed. |exit_code| is the status returned when the 35 // Called if the process crashed. |exit_code| is the status returned when the
32 // process crashed (for posix, as returned from waitpid(), for Windows, as 36 // process crashed (for posix, as returned from waitpid(), for Windows, as
33 // returned from GetExitCodeProcess()). 37 // returned from GetExitCodeProcess()).
34 virtual void OnProcessCrashed(int exit_code) {} 38 virtual void OnProcessCrashed(int exit_code) {}
39
40 // Returns the shell::InterfaceProvider the browser process can use to bind
41 // interfaces exposed to it from the child.
42 virtual shell::InterfaceProvider* GetRemoteInterfaces();
35 }; 43 };
36 44
37 }; // namespace content 45 }; // namespace content
38 46
39 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_ 47 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | content/public/browser/browser_child_process_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698