| Index: mojo/edk/embedder/embedder.h
|
| diff --git a/mojo/edk/embedder/embedder.h b/mojo/edk/embedder/embedder.h
|
| index e673aff2cd366393b37f302040697e05eed93391..c0672aa865262f4f0da079aac7cf75421e4fff54 100644
|
| --- a/mojo/edk/embedder/embedder.h
|
| +++ b/mojo/edk/embedder/embedder.h
|
| @@ -27,8 +27,6 @@ class PortProvider;
|
| namespace mojo {
|
| namespace edk {
|
|
|
| -class ProcessDelegate;
|
| -
|
| using ProcessErrorCallback = base::Callback<void(const std::string& error)>;
|
|
|
| // Basic configuration/initialization ------------------------------------------
|
| @@ -150,22 +148,20 @@ PassSharedMemoryHandle(MojoHandle mojo_handle,
|
| //
|
| // This subsystem may be shut down using |ShutdownIPCSupport()|. None of the IPC
|
| // functions may be called after this is called.
|
| -
|
| -// Initializes a process of the given type; to be called after |Init()|.
|
| -// - |process_delegate| must be a process delegate of the appropriate type
|
| -// corresponding to |process_type|; its methods will be called on the same
|
| -// thread as Shutdown.
|
| -// - |process_delegate|, and |io_thread_task_runner| should live at least
|
| -// until |ShutdownIPCSupport()|'s callback has been run.
|
| +//
|
| +// |io_thread_task_runner| should live at least until |ShutdownIPCSupport()|'s
|
| +// callback has been run.
|
| MOJO_SYSTEM_IMPL_EXPORT void InitIPCSupport(
|
| - ProcessDelegate* process_delegate,
|
| scoped_refptr<base::TaskRunner> io_thread_task_runner);
|
|
|
| +// Retrieves the TaskRunner used for IPC I/O, as set by InitIPCSupport.
|
| +MOJO_SYSTEM_IMPL_EXPORT scoped_refptr<base::TaskRunner> GetIOTaskRunner();
|
| +
|
| // Shuts down the subsystem initialized by |InitIPCSupport()|. It be called from
|
| // any thread and will attempt to complete shutdown on the I/O thread with which
|
| -// the system was initialized. Upon completion the ProcessDelegate's
|
| -// |OnShutdownComplete()| method is invoked.
|
| -MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport();
|
| +// the system was initialized. Upon completion, |callback| is invoked on an
|
| +// arbitrary thread.
|
| +MOJO_SYSTEM_IMPL_EXPORT void ShutdownIPCSupport(const base::Closure& callback);
|
|
|
| #if defined(OS_MACOSX) && !defined(OS_IOS)
|
| // Set the |base::PortProvider| for this process. Can be called on any thread,
|
|
|