blob: c04e8ada538c18b6525b9997b5c069e9067ebbef [file] [log] [blame]
yzshen8be41d3a2017-01-23 20:40:371// 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
12namespace mojo {
13
14struct DisconnectReason {
15 public:
16 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_