Convert some ChromeVox functional getters to properties.
[chromium-blink-merge.git] / ipc / attachment_broker_unprivileged.cc
blobf12cfe2748cd62a26666b58af804d925c6060d85
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"
9 namespace IPC {
11 AttachmentBrokerUnprivileged::AttachmentBrokerUnprivileged()
12 : sender_(nullptr) {}
14 AttachmentBrokerUnprivileged::~AttachmentBrokerUnprivileged() {}
16 void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
17 IPC::Channel* channel) {
18 DCHECK(channel);
19 DCHECK(!sender_);
20 sender_ = channel;
21 channel->set_attachment_broker_endpoint(true);
24 } // namespace IPC