• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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 #include "mojo/edk/embedder/platform_channel_pair.h"
6 
7 #include <utility>
8 
9 #include "base/logging.h"
10 
11 namespace mojo {
12 namespace edk {
13 
14 const char PlatformChannelPair::kMojoPlatformChannelHandleSwitch[] =
15     "mojo-platform-channel-handle";
16 
~PlatformChannelPair()17 PlatformChannelPair::~PlatformChannelPair() {
18 }
19 
PassServerHandle()20 ScopedPlatformHandle PlatformChannelPair::PassServerHandle() {
21   return std::move(server_handle_);
22 }
23 
PassClientHandle()24 ScopedPlatformHandle PlatformChannelPair::PassClientHandle() {
25   return std::move(client_handle_);
26 }
27 
ChildProcessLaunched()28 void PlatformChannelPair::ChildProcessLaunched() {
29   DCHECK(client_handle_.is_valid());
30   client_handle_.reset();
31 }
32 
33 }  // namespace edk
34 }  // namespace mojo
35