Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: mojo/public/cpp/bindings/disconnect_reason.h

Issue 2649573004: Mojo bindings: merge the control messages of sending disconnect reason and notifying endpoint close… (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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:
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698