OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef IPC_ATTACHMENT_BROKER_UNPRIVILEGED_H_ |
| 6 #define IPC_ATTACHMENT_BROKER_UNPRIVILEGED_H_ |
| 7 |
| 8 #include "ipc/attachment_broker.h" |
| 9 #include "ipc/ipc_export.h" |
| 10 |
| 11 namespace IPC { |
| 12 |
| 13 class Sender; |
| 14 |
| 15 // This abstract subclass of AttachmentBroker is intended for use in |
| 16 // non-privileged processes. |
| 17 class IPC_EXPORT AttachmentBrokerUnprivileged : public IPC::AttachmentBroker { |
| 18 public: |
| 19 AttachmentBrokerUnprivileged(); |
| 20 ~AttachmentBrokerUnprivileged() override; |
| 21 |
| 22 void set_sender(IPC::Sender* sender) { sender_ = sender; } |
| 23 |
| 24 protected: |
| 25 IPC::Sender* get_sender() { return sender_; } |
| 26 |
| 27 private: |
| 28 // |sender_| is used to send Messages to the privileged broker process. |
| 29 // |sender_| must live at least as long as this instance. |
| 30 IPC::Sender* sender_; |
| 31 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerUnprivileged); |
| 32 }; |
| 33 |
| 34 } // namespace IPC |
| 35 |
| 36 #endif // IPC_ATTACHMENT_BROKER_UNPRIVILEGED_H_ |
OLD | NEW |