Index: mojo/message_pump/message_pump_mojo.h |
diff --git a/mojo/message_pump/message_pump_mojo.h b/mojo/message_pump/message_pump_mojo.h |
index 345bdb6bbd26b378b6a8736c6a7cc8d52454279a..071f8fe77d841dd1fea146b8848eca68d3a4dfb6 100644 |
--- a/mojo/message_pump/message_pump_mojo.h |
+++ b/mojo/message_pump/message_pump_mojo.h |
@@ -103,10 +103,6 @@ class MOJO_MESSAGE_PUMP_EXPORT MessagePumpMojo : public base::MessagePump { |
// if any handles were ready and processed. |
bool ProcessReadyHandles(); |
- // Removes the given invalid handle. This is called if MojoGetReadyHandles |
- // finds an invalid or closed handle. |
- void RemoveInvalidHandle(MojoResult result, Handle handle); |
- |
// Removes any handles that have expired their deadline. Runs the handler's |
// OnHandleError() function with |MOJO_RESULT_DEADLINE_EXCEEDED| as the |
// result. Returns |true| if any handles were removed. |
@@ -121,6 +117,11 @@ class MOJO_MESSAGE_PUMP_EXPORT MessagePumpMojo : public base::MessagePump { |
// must be registered. |
void SignalHandleReady(Handle handle); |
+ // Run |OnHandleError()| for the handler registered with |handle| and the |
+ // error code |result|. |handle| must be registered, and will be removed |
+ // before calling |OnHandleError()|. |
+ void SignalHandleError(Handle handle, MojoResult result); |
+ |
void WillSignalHandler(); |
void DidSignalHandler(); |