This source file includes following definitions.
- PassServerHandle
- PassClientHandle
- ChildProcessLaunched
#include "mojo/embedder/platform_channel_pair.h"
#include "base/logging.h"
namespace mojo {
namespace embedder {
const char PlatformChannelPair::kMojoPlatformChannelHandleSwitch[] =
"mojo-platform-channel-handle";
PlatformChannelPair::~PlatformChannelPair() {
}
ScopedPlatformHandle PlatformChannelPair::PassServerHandle() {
return server_handle_.Pass();
}
ScopedPlatformHandle PlatformChannelPair::PassClientHandle() {
return client_handle_.Pass();
}
void PlatformChannelPair::ChildProcessLaunched() {
DCHECK(client_handle_.is_valid());
client_handle_.reset();
}
}
}