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.
5 #include "ipc/ipc_channel.h"
10 scoped_ptr
<Channel
> Channel::CreateClient(
11 const IPC::ChannelHandle
& channel_handle
,
13 AttachmentBroker
* broker
) {
14 return Channel::Create(channel_handle
, Channel::MODE_CLIENT
, listener
,
19 scoped_ptr
<Channel
> Channel::CreateNamedServer(
20 const IPC::ChannelHandle
& channel_handle
,
22 AttachmentBroker
* broker
) {
23 return Channel::Create(channel_handle
, Channel::MODE_NAMED_SERVER
, listener
,
28 scoped_ptr
<Channel
> Channel::CreateNamedClient(
29 const IPC::ChannelHandle
& channel_handle
,
31 AttachmentBroker
* broker
) {
32 return Channel::Create(channel_handle
, Channel::MODE_NAMED_CLIENT
, listener
,
38 scoped_ptr
<Channel
> Channel::CreateOpenNamedServer(
39 const IPC::ChannelHandle
& channel_handle
,
41 AttachmentBroker
* broker
) {
42 return Channel::Create(channel_handle
, Channel::MODE_OPEN_NAMED_SERVER
,
48 scoped_ptr
<Channel
> Channel::CreateServer(
49 const IPC::ChannelHandle
& channel_handle
,
51 AttachmentBroker
* broker
) {
52 return Channel::Create(channel_handle
, Channel::MODE_SERVER
, listener
,
59 bool Channel::IsSendThreadSafe() const {