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

Side by Side Diff: ipc/attachment_broker_privileged_win.h

Issue 1281083004: ipc: Add the class HandleWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add logging. Created 5 years, 4 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_messages.h ('k') | ipc/attachment_broker_privileged_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_ATTACHMENT_BROKER_PRIVILEGED_WIN_H_ 5 #ifndef IPC_ATTACHMENT_BROKER_PRIVILEGED_WIN_H_
6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_WIN_H_ 6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_WIN_H_
7 7
8 #include "ipc/attachment_broker_privileged.h" 8 #include "ipc/attachment_broker_privileged.h"
9 #include "ipc/handle_attachment_win.h" 9 #include "ipc/handle_attachment_win.h"
10 #include "ipc/ipc_export.h" 10 #include "ipc/ipc_export.h"
(...skipping 11 matching lines...) Expand all
22 // IPC::AttachmentBroker overrides. 22 // IPC::AttachmentBroker overrides.
23 bool SendAttachmentToProcess(const BrokerableAttachment* attachment, 23 bool SendAttachmentToProcess(const BrokerableAttachment* attachment,
24 base::ProcessId destination_process) override; 24 base::ProcessId destination_process) override;
25 25
26 // IPC::Listener overrides. 26 // IPC::Listener overrides.
27 bool OnMessageReceived(const Message& message) override; 27 bool OnMessageReceived(const Message& message) override;
28 28
29 private: 29 private:
30 using HandleWireFormat = internal::HandleAttachmentWin::WireFormat; 30 using HandleWireFormat = internal::HandleAttachmentWin::WireFormat;
31 // IPC message handlers. 31 // IPC message handlers.
32 void OnDuplicateWinHandle(const IPC::Message& message); 32 void OnDuplicateWinHandle(const Message& message);
33 33
34 // Duplicates |wire_Format| from |source_process| into its destination 34 // Duplicates |wire_Format| from |source_process| into its destination
35 // process. 35 // process.
36 HandleWireFormat DuplicateWinHandle(const HandleWireFormat& wire_format, 36 HandleWireFormat DuplicateWinHandle(const HandleWireFormat& wire_format,
37 base::ProcessId source_process); 37 base::ProcessId source_process);
38 38
39 // If the HANDLE's destination is this process, queue it and notify the 39 // If the HANDLE's destination is this process, queue it and notify the
40 // observers. Otherwise, send it in an IPC to its destination. 40 // observers. Otherwise, send it in an IPC to its destination.
41 void RouteDuplicatedHandle(const HandleWireFormat& wire_format); 41 void RouteDuplicatedHandle(const HandleWireFormat& wire_format);
42 42
43 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedWin); 43 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivilegedWin);
44 }; 44 };
45 45
46 } // namespace IPC 46 } // namespace IPC
47 47
48 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_WIN_H_ 48 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_WIN_H_
OLDNEW
« no previous file with comments | « ipc/attachment_broker_messages.h ('k') | ipc/attachment_broker_privileged_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698