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

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

Issue 804633002: Add NotifyServer 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/exc_server_variants.h » ('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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 protected: 52 protected:
53 ~Interface() {} 53 ~Interface() {}
54 }; 54 };
55 55
56 //! \brief Constructs an object of this class. 56 //! \brief Constructs an object of this class.
57 //! 57 //!
58 //! \param[in] interface The interface to dispatch requests to. Weak. 58 //! \param[in] interface The interface to dispatch requests to. Weak.
59 explicit ChildPortServer(Interface* interface); 59 explicit ChildPortServer(Interface* interface);
60 60
61 // MachMessageServer::Interface: 61 // MachMessageServer::Interface:
62
63 bool MachMessageServerFunction(const mach_msg_header_t* in_header, 62 bool MachMessageServerFunction(const mach_msg_header_t* in_header,
64 mach_msg_header_t* out_header, 63 mach_msg_header_t* out_header,
65 bool* destroy_complex_request) override; 64 bool* destroy_complex_request) override;
66
67 std::set<mach_msg_id_t> MachMessageServerRequestIDs() override; 65 std::set<mach_msg_id_t> MachMessageServerRequestIDs() override;
68
69 mach_msg_size_t MachMessageServerRequestSize() override; 66 mach_msg_size_t MachMessageServerRequestSize() override;
70 mach_msg_size_t MachMessageServerReplySize() override; 67 mach_msg_size_t MachMessageServerReplySize() override;
71 68
72 private: 69 private:
73 Interface* interface_; // weak 70 Interface* interface_; // weak
74 71
75 DISALLOW_COPY_AND_ASSIGN(ChildPortServer); 72 DISALLOW_COPY_AND_ASSIGN(ChildPortServer);
76 }; 73 };
77 74
78 } // namespace crashpad 75 } // namespace crashpad
79 76
80 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_SERVER_H_ 77 #endif // CRASHPAD_UTIL_MACH_CHILD_PORT_SERVER_H_
OLDNEW
« no previous file with comments | « no previous file | util/mach/exc_server_variants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698