OLD | NEW |
---|---|
(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_EDK_EMBEDDER_CONNECTION_PARAM_H_ | |
6 #define MOJO_EDK_EMBEDDER_CONNECTION_PARAM_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "build/build_config.h" | |
10 #include "mojo/edk/embedder/scoped_platform_handle.h" | |
11 #include "mojo/edk/system/system_impl_export.h" | |
12 | |
13 namespace mojo { | |
14 namespace edk { | |
15 | |
16 class MOJO_SYSTEM_IMPL_EXPORT ConnectionParam { | |
Ken Rockot(use gerrit already)
2017/03/09 18:00:43
nit: (sorry) - I think ConnectionParams (plural) w
| |
17 public: | |
18 explicit ConnectionParam(ScopedPlatformHandle channel); | |
19 | |
20 ConnectionParam(ConnectionParam&& param); | |
21 ConnectionParam& operator=(ConnectionParam&& param); | |
22 | |
23 ScopedPlatformHandle TakeChannelHandle(); | |
24 | |
25 private: | |
26 ScopedPlatformHandle channel_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(ConnectionParam); | |
29 }; | |
30 | |
31 } // namespace edk | |
32 } // namespace mojo | |
33 | |
34 #endif // MOJO_EDK_EMBEDDER_CONNECTION_PARAM_H_ | |
OLD | NEW |