xref: /aosp_15_r20/external/libchrome/mojo/public/cpp/bindings/disconnect_reason.h (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1 // Copyright 2017 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_DISCONNECT_REASON_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_DISCONNECT_REASON_H_
7 
8 #include <stdint.h>
9 
10 #include <string>
11 
12 namespace mojo {
13 
14 struct DisconnectReason {
15  public:
DisconnectReasonDisconnectReason16   DisconnectReason(uint32_t in_custom_reason, const std::string& in_description)
17       : custom_reason(in_custom_reason), description(in_description) {}
18 
19   uint32_t custom_reason;
20   std::string description;
21 };
22 
23 }  // namespace mojo
24 
25 #endif  // MOJO_PUBLIC_CPP_BINDINGS_DISCONNECT_REASON_H_
26