Update broken references to image assets
[chromium-blink-merge.git] / ipc / attachment_broker_unprivileged.h
blob1e1e60e90bb308888689a7bb3db7a927d0008d06
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 #ifndef IPC_ATTACHMENT_BROKER_UNPRIVILEGED_H_
6 #define IPC_ATTACHMENT_BROKER_UNPRIVILEGED_H_
8 #include "ipc/attachment_broker.h"
9 #include "ipc/ipc_export.h"
11 namespace IPC {
13 class Endpoint;
14 class Sender;
16 // This abstract subclass of AttachmentBroker is intended for use in
17 // non-privileged processes.
18 class IPC_EXPORT AttachmentBrokerUnprivileged : public IPC::AttachmentBroker {
19 public:
20 AttachmentBrokerUnprivileged();
21 ~AttachmentBrokerUnprivileged() override;
23 // In each unprivileged process, exactly one channel should be used to
24 // communicate brokerable attachments with the broker process.
25 void DesignateBrokerCommunicationChannel(Endpoint* endpoint);
27 protected:
28 IPC::Sender* get_sender() { return sender_; }
30 private:
31 // |sender_| is used to send Messages to the privileged broker process.
32 // |sender_| must live at least as long as this instance.
33 IPC::Sender* sender_;
34 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerUnprivileged);
37 } // namespace IPC
39 #endif // IPC_ATTACHMENT_BROKER_UNPRIVILEGED_H_