Chromium Code Reviews| Index: mojo/common/message_pump_mojo.h |
| diff --git a/mojo/common/message_pump_mojo.h b/mojo/common/message_pump_mojo.h |
| index b176b1f694e2cfd98d406dc93305948ada9bdaf3..6c3591df881026a7a1346c4e6e57a4d3545ea834 100644 |
| --- a/mojo/common/message_pump_mojo.h |
| +++ b/mojo/common/message_pump_mojo.h |
| @@ -6,6 +6,8 @@ |
| #define MOJO_COMMON_MESSAGE_PUMP_MOJO_H_ |
| #include <map> |
| +#include <utility> |
| +#include <vector> |
| #include "base/macros.h" |
| #include "base/memory/scoped_ptr.h" |
| @@ -81,6 +83,7 @@ class MessagePumpMojo : public base::MessagePump { |
| }; |
| typedef std::map<Handle, Handler> HandleToHandler; |
| + typedef std::vector<std::pair<Handle, Handler>> HandleToHandlerList; |
|
qsr
2015/05/28 09:33:48
This doesn't seem to be needed in the .h file.
Anand Mistry (off Chromium)
2015/05/28 23:27:45
Handler is a private member, so the compiler barfs
|
| // Implementation of Run(). |
| void DoRunLoop(RunState* run_state, Delegate* delegate); |
| @@ -98,7 +101,7 @@ class MessagePumpMojo : public base::MessagePump { |
| void SignalControlPipe(const RunState& run_state); |
| - WaitState GetWaitState(const RunState& run_state) const; |
| + void GetWaitState(const RunState& run_state, WaitState* wait_state) const; |
| // Returns the deadline for the call to MojoWaitMany(). |
| MojoDeadline GetDeadlineForWait(const RunState& run_state) const; |