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

Unified Diff: util/mach/notify_server.cc

Issue 1414413006: mac: Add NotifyServer::DefaultInterface, a default no-op implementation (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/mach/notify_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/notify_server.cc
diff --git a/util/mach/notify_server.cc b/util/mach/notify_server.cc
index 05495c65dd3ec9ccbce584921c777f257f2481b4..48a4a9e93764fa803cb1fe4902193b74bb5b7916 100644
--- a/util/mach/notify_server.cc
+++ b/util/mach/notify_server.cc
@@ -105,6 +105,42 @@ kern_return_t MIGCheckRequestMachNotifyDeadName(
namespace crashpad {
+kern_return_t NotifyServer::DefaultInterface::DoMachNotifyPortDeleted(
+ notify_port_t notify,
+ mach_port_name_t name,
+ const mach_msg_trailer_t* trailer) {
+ return MIG_BAD_ID;
+}
+
+kern_return_t NotifyServer::DefaultInterface::DoMachNotifyPortDestroyed(
+ notify_port_t notify,
+ mach_port_t rights,
+ const mach_msg_trailer_t* trailer,
+ bool* destroy_request) {
+ *destroy_request = true;
+ return MIG_BAD_ID;
+}
+
+kern_return_t NotifyServer::DefaultInterface::DoMachNotifyNoSenders(
+ notify_port_t notify,
+ mach_port_mscount_t mscount,
+ const mach_msg_trailer_t* trailer) {
+ return MIG_BAD_ID;
+}
+
+kern_return_t NotifyServer::DefaultInterface::DoMachNotifySendOnce(
+ notify_port_t notify,
+ const mach_msg_trailer_t* trailer) {
+ return MIG_BAD_ID;
+}
+
+kern_return_t NotifyServer::DefaultInterface::DoMachNotifyDeadName(
+ notify_port_t notify,
+ mach_port_name_t name,
+ const mach_msg_trailer_t* trailer) {
+ return MIG_BAD_ID;
+}
+
NotifyServer::NotifyServer(NotifyServer::Interface* interface)
: MachMessageServer::Interface(),
interface_(interface) {
« no previous file with comments | « util/mach/notify_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698