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

Side by Side Diff: ipc/brokerable_attachment.h

Issue 1205713002: Make attachment broker a subclass of IPC::Listener. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachment_broker3_listener_base
Patch Set: Update copyright date. Created 5 years, 5 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
« no previous file with comments | « ipc/attachment_broker_win_unittest.cc ('k') | ipc/brokerable_attachment.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_BROKERABLE_ATTACHMENT_H_ 5 #ifndef IPC_BROKERABLE_ATTACHMENT_H_
6 #define IPC_BROKERABLE_ATTACHMENT_H_ 6 #define IPC_BROKERABLE_ATTACHMENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 // The identifier is unique across all Chrome processes. 30 // The identifier is unique across all Chrome processes.
31 AttachmentId GetIdentifier() const; 31 AttachmentId GetIdentifier() const;
32 32
33 // Returns TYPE_BROKERABLE_ATTACHMENT 33 // Returns TYPE_BROKERABLE_ATTACHMENT
34 Type GetType() const override; 34 Type GetType() const override;
35 35
36 virtual BrokerableType GetBrokerableType() const = 0; 36 virtual BrokerableType GetBrokerableType() const = 0;
37 37
38 protected: 38 protected:
39 BrokerableAttachment(); 39 BrokerableAttachment();
40 explicit BrokerableAttachment(const AttachmentId& id);
40 ~BrokerableAttachment() override; 41 ~BrokerableAttachment() override;
41 42
42 private: 43 private:
43 // This member uniquely identifies a BrokerableAttachment across all Chrome 44 // This member uniquely identifies a BrokerableAttachment across all Chrome
44 // processes. 45 // processes.
45 const AttachmentId id_; 46 const AttachmentId id_;
46 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment); 47 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment);
47 }; 48 };
48 49
49 } // namespace IPC 50 } // namespace IPC
50 51
51 #endif // IPC_BROKERABLE_ATTACHMENT_H_ 52 #endif // IPC_BROKERABLE_ATTACHMENT_H_
OLDNEW
« no previous file with comments | « ipc/attachment_broker_win_unittest.cc ('k') | ipc/brokerable_attachment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698