OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_CONNECTION_ERROR_CALLBACK_H_ |
| 6 #define MOJO_PUBLIC_CPP_BINDINGS_CONNECTION_ERROR_CALLBACK_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 // This callback type accepts user-defined disconnect reason and description. If |
| 13 // the other side specifies a reason on closing the connection, it will be |
| 14 // passed to the error handler. |
| 15 using ConnectionErrorWithReasonCallback = |
| 16 base::Callback<void(uint32_t /* custom_reason */, |
| 17 const std::string& /* description */)>; |
| 18 |
| 19 } // namespace mojo |
| 20 |
| 21 #endif // MOJO_PUBLIC_CPP_BINDINGS_CONNECTION_ERROR_CALLBACK_H_ |
OLD | NEW |