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

Unified Diff: mojo/message_pump/message_pump_mojo.h

Issue 1573383002: Couple of small cleanups to MessagePumpMojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/message_pump/message_pump_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | mojo/message_pump/message_pump_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698