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

Side by Side Diff: util/mach/child_port_server.h

Issue 781823002: Add CompositeMachMessageServer and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years 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 | « no previous file | util/mach/child_port_server.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 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 //! 55 //!
56 //! \param[in] interface The interface to dispatch requests to. Weak. 56 //! \param[in] interface The interface to dispatch requests to. Weak.
57 explicit ChildPortServer(Interface* interface); 57 explicit ChildPortServer(Interface* interface);
58 58
59 // MachMessageServer::Interface: 59 // MachMessageServer::Interface:
60 60
61 bool MachMessageServerFunction(const mach_msg_header_t* in_header, 61 bool MachMessageServerFunction(const mach_msg_header_t* in_header,
62 mach_msg_header_t* out_header, 62 mach_msg_header_t* out_header,
63 bool* destroy_complex_request) override; 63 bool* destroy_complex_request) override;
64 64
65 std::set<mach_msg_id_t> MachMessageServerRequestIDs() override;
66
65 mach_msg_size_t MachMessageServerRequestSize() override; 67 mach_msg_size_t MachMessageServerRequestSize() override;
66 mach_msg_size_t MachMessageServerReplySize() override; 68 mach_msg_size_t MachMessageServerReplySize() override;
67 69
68 private: 70 private:
69 Interface* interface_; // weak 71 Interface* interface_; // weak
70 72
71 DISALLOW_COPY_AND_ASSIGN(ChildPortServer); 73 DISALLOW_COPY_AND_ASSIGN(ChildPortServer);
72 }; 74 };
73 75
74 } // namespace crashpad 76 } // namespace crashpad
75 77
76 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_SERVER_H_ 78 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_SERVER_H_
OLDNEW
« no previous file with comments | « no previous file | util/mach/child_port_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698