Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(828)

Side by Side Diff: ipc/brokerable_attachment.h

Issue 1180313007: IPC: Add new classes required for attachment brokering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark overriding method with override. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_BROKERABLE_ATTACHMENT_H_
6 #define IPC_BROKERABLE_ATTACHMENT_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "ipc/ipc_export.h"
12 #include "ipc/ipc_message_attachment.h"
13
14 namespace IPC {
15
16 // An id uniquely identifies an attachment sent via a broker.
Tom Sepez 2015/06/16 17:23:22 nit: maybe this is nested inside as BrokerableAtta
erikchen 2015/06/16 17:56:42 Done.
17 struct IPC_EXPORT BrokerableAttachmentId {
18 uint32_t nonce[4];
19 };
20
21 // This subclass of MessageAttachment requires an AttachmentBroker to be
22 // attached to a Chrome IPC message.
23 class IPC_EXPORT BrokerableAttachment : public MessageAttachment {
24 public:
25 // The identifier is unique across all Chrome processes.
26 BrokerableAttachmentId GetIdentifier() const;
27
28 protected:
29 BrokerableAttachment();
30 ~BrokerableAttachment() override;
31
32 private:
33 // This member uniquely identifies a BrokerableAttachment across all Chrome
34 // processes.
35 BrokerableAttachmentId id_;
36 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment);
37 };
38
39 } // namespace IPC
40
41 #endif // IPC_BROKERABLE_ATTACHMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698