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

Unified Diff: mojo/edk/embedder/connection_param.h

Issue 2738853002: Connections now take a ConnectionParams instead of a pipe handle. (Closed)
Patch Set: Fix Win compile Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/embedder/connection_param.h
diff --git a/mojo/edk/embedder/connection_param.h b/mojo/edk/embedder/connection_param.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff0d0e29537ae804309c91c3e8978ef73e04dc8b
--- /dev/null
+++ b/mojo/edk/embedder/connection_param.h
@@ -0,0 +1,34 @@
+// 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_EDK_EMBEDDER_CONNECTION_PARAM_H_
+#define MOJO_EDK_EMBEDDER_CONNECTION_PARAM_H_
+
+#include "base/macros.h"
+#include "build/build_config.h"
+#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include "mojo/edk/system/system_impl_export.h"
+
+namespace mojo {
+namespace edk {
+
+class MOJO_SYSTEM_IMPL_EXPORT ConnectionParam {
Ken Rockot(use gerrit already) 2017/03/09 18:00:43 nit: (sorry) - I think ConnectionParams (plural) w
+ public:
+ explicit ConnectionParam(ScopedPlatformHandle channel);
+
+ ConnectionParam(ConnectionParam&& param);
+ ConnectionParam& operator=(ConnectionParam&& param);
+
+ ScopedPlatformHandle TakeChannelHandle();
+
+ private:
+ ScopedPlatformHandle channel_;
+
+ DISALLOW_COPY_AND_ASSIGN(ConnectionParam);
+};
+
+} // namespace edk
+} // namespace mojo
+
+#endif // MOJO_EDK_EMBEDDER_CONNECTION_PARAM_H_

Powered by Google App Engine
This is Rietveld 408576698