summaryrefslogtreecommitdiff
path: root/mojo/public/cpp/bindings/disconnect_reason.h
blob: c04e8ada538c18b6525b9997b5c069e9067ebbef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2017 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_PUBLIC_CPP_BINDINGS_DISCONNECT_REASON_H_
#define MOJO_PUBLIC_CPP_BINDINGS_DISCONNECT_REASON_H_

#include <stdint.h>

#include <string>

namespace mojo {

struct DisconnectReason {
 public:
  DisconnectReason(uint32_t in_custom_reason, const std::string& in_description)
      : custom_reason(in_custom_reason), description(in_description) {}

  uint32_t custom_reason;
  std::string description;
};

}  // namespace mojo

#endif  // MOJO_PUBLIC_CPP_BINDINGS_DISCONNECT_REASON_H_