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

Side by Side Diff: ipc/handle_attachment_win.h

Issue 1317093007: ipc: Make a new class PlaceholderBrokerableAttachment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More rebase errors. Created 5 years, 3 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/brokerable_attachment.cc ('k') | ipc/handle_attachment_win.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_HANDLE_ATTACHMENT_WIN_H_ 5 #ifndef IPC_HANDLE_ATTACHMENT_WIN_H_
6 #define IPC_HANDLE_ATTACHMENT_WIN_H_ 6 #define IPC_HANDLE_ATTACHMENT_WIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 22 matching lines...) Expand all
33 // The permissions to use when duplicating the handle. 33 // The permissions to use when duplicating the handle.
34 HandleWin::Permissions permissions; 34 HandleWin::Permissions permissions;
35 AttachmentId attachment_id; 35 AttachmentId attachment_id;
36 }; 36 };
37 37
38 HandleAttachmentWin(const HANDLE& handle, HandleWin::Permissions permissions); 38 HandleAttachmentWin(const HANDLE& handle, HandleWin::Permissions permissions);
39 explicit HandleAttachmentWin(const WireFormat& wire_format); 39 explicit HandleAttachmentWin(const WireFormat& wire_format);
40 explicit HandleAttachmentWin(const BrokerableAttachment::AttachmentId& id); 40 explicit HandleAttachmentWin(const BrokerableAttachment::AttachmentId& id);
41 41
42 BrokerableType GetBrokerableType() const override; 42 BrokerableType GetBrokerableType() const override;
43 void PopulateWithAttachment(const BrokerableAttachment* attachment) override;
44 43
45 // Returns the wire format of this attachment. 44 // Returns the wire format of this attachment.
46 WireFormat GetWireFormat(const base::ProcessId& destination) const; 45 WireFormat GetWireFormat(const base::ProcessId& destination) const;
47 46
48 HANDLE get_handle() const { return handle_; } 47 HANDLE get_handle() const { return handle_; }
49 48
50 private: 49 private:
51 ~HandleAttachmentWin() override; 50 ~HandleAttachmentWin() override;
52 HANDLE handle_; 51 HANDLE handle_;
53 HandleWin::Permissions permissions_; 52 HandleWin::Permissions permissions_;
54 }; 53 };
55 54
56 } // namespace internal 55 } // namespace internal
57 } // namespace IPC 56 } // namespace IPC
58 57
59 #endif // IPC_HANDLE_ATTACHMENT_WIN_H_ 58 #endif // IPC_HANDLE_ATTACHMENT_WIN_H_
OLDNEW
« no previous file with comments | « ipc/brokerable_attachment.cc ('k') | ipc/handle_attachment_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698