blob: 783ced8b71130f68129a4403f66d39fbebe8bec1 [file] [log] [blame]
[email protected]35cfded2014-01-10 20:50:181// 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
[email protected]f13fe442014-03-19 00:05:265#include "mojo/embedder/platform_channel_pair.h"
[email protected]35cfded2014-01-10 20:50:186
7#include "base/logging.h"
[email protected]35cfded2014-01-10 20:50:188
9namespace mojo {
[email protected]c62d7422014-01-16 20:29:4710namespace embedder {
[email protected]35cfded2014-01-10 20:50:1811
[email protected]c64265662014-02-05 18:40:1312const char PlatformChannelPair::kMojoPlatformChannelHandleSwitch[] =
13 "mojo-platform-channel-handle";
14
[email protected]35cfded2014-01-10 20:50:1815PlatformChannelPair::~PlatformChannelPair() {
[email protected]35cfded2014-01-10 20:50:1816}
17
[email protected]544076a2014-01-14 16:30:4318ScopedPlatformHandle PlatformChannelPair::PassServerHandle() {
19 return server_handle_.Pass();
[email protected]35cfded2014-01-10 20:50:1820}
21
[email protected]544076a2014-01-14 16:30:4322ScopedPlatformHandle PlatformChannelPair::PassClientHandle() {
23 return client_handle_.Pass();
[email protected]35cfded2014-01-10 20:50:1824}
25
[email protected]c64265662014-02-05 18:40:1326void PlatformChannelPair::ChildProcessLaunched() {
27 DCHECK(client_handle_.is_valid());
28 client_handle_.reset();
29}
30
[email protected]c62d7422014-01-16 20:29:4731} // namespace embedder
[email protected]35cfded2014-01-10 20:50:1832} // namespace mojo