flutter_flutter/mojo/message_pump/message_pump_mojo_handler.h
James Robinson c8eff5e44f Update to mojo d259eb58aa59e14a13d5e0dc3984b855b475ba09
This updates to mojo commit d259eb58aa59 and limits the roll script to
only pull in the parts of //mojo that are currently being used. More
stuff will be dropped in the future.
2015-08-25 14:56:25 -07:00

29 lines
827 B
C++

// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_MESSAGE_PUMP_MESSAGE_PUMP_MOJO_HANDLER_H_
#define MOJO_MESSAGE_PUMP_MESSAGE_PUMP_MOJO_HANDLER_H_
#include "mojo/public/cpp/system/core.h"
namespace mojo {
namespace common {
// Used by MessagePumpMojo to notify when a handle is either ready or has become
// invalid. In case of error, the handler will be removed.
class MessagePumpMojoHandler {
public:
virtual void OnHandleReady(const Handle& handle) = 0;
virtual void OnHandleError(const Handle& handle, MojoResult result) = 0;
protected:
virtual ~MessagePumpMojoHandler() {}
};
} // namespace common
} // namespace mojo
#endif // MOJO_MESSAGE_PUMP_MESSAGE_PUMP_MOJO_HANDLER_H_