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_PARAMS_H_ |
| 6 #define MOJO_EDK_EMBEDDER_CONNECTION_PARAMS_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 ConnectionParams { |
| 17 public: |
| 18 explicit ConnectionParams(ScopedPlatformHandle channel); |
| 19 |
| 20 ConnectionParams(ConnectionParams&& param); |
| 21 ConnectionParams& operator=(ConnectionParams&& param); |
| 22 |
| 23 ScopedPlatformHandle TakeChannelHandle(); |
| 24 |
| 25 private: |
| 26 ScopedPlatformHandle channel_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(ConnectionParams); |
| 29 }; |
| 30 |
| 31 } // namespace edk |
| 32 } // namespace mojo |
| 33 |
| 34 #endif // MOJO_EDK_EMBEDDER_CONNECTION_PARAMS_H_ |
OLD | NEW |