Add ICU message format support
[chromium-blink-merge.git] / ipc / attachment_broker_unprivileged.cc
blob45aeae89e672021f46382b41218071f67ea6534d
1 // Copyright 2015 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/attachment_broker_unprivileged.h"
7 #include "ipc/ipc_channel.h"
8 #include "ipc/ipc_channel_proxy.h"
10 namespace IPC {
12 AttachmentBrokerUnprivileged::AttachmentBrokerUnprivileged()
13 : sender_(nullptr) {}
15 AttachmentBrokerUnprivileged::~AttachmentBrokerUnprivileged() {}
17 void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
18 IPC::Channel* channel) {
19 DCHECK(channel);
20 DCHECK(!sender_);
21 sender_ = channel;
22 channel->set_attachment_broker_endpoint(true);
25 void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
26 IPC::ChannelProxy* proxy) {
27 DCHECK(proxy);
28 DCHECK(!sender_);
29 sender_ = proxy;
30 proxy->SetAttachmentBrokerEndpoint(true);
33 } // namespace IPC