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

Unified Diff: sandbox/mac/mach_message_server.h

Issue 398563002: Do not create a reply IPCMessage for every message received. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « sandbox/mac/launchd_interception_server.cc ('k') | sandbox/mac/mach_message_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/mach_message_server.h
diff --git a/sandbox/mac/mach_message_server.h b/sandbox/mac/mach_message_server.h
index eb70822e7c1d7d0ed79ab30655d0ffe24d620c4f..ba0b2c40a06c9530c682573429900753b80390b4 100644
--- a/sandbox/mac/mach_message_server.h
+++ b/sandbox/mac/mach_message_server.h
@@ -33,12 +33,13 @@ class MachMessageServer : public MessageServer {
// MessageServer:
virtual bool Initialize() OVERRIDE;
virtual pid_t GetMessageSenderPID(IPCMessage request) OVERRIDE;
+ virtual IPCMessage CreateReply(IPCMessage request) OVERRIDE;
virtual bool SendReply(IPCMessage reply) OVERRIDE;
virtual void ForwardMessage(IPCMessage request,
mach_port_t destination) OVERRIDE;
// Replies to the message with the specified |error_code| as a MIG
// error_reply RetCode.
- virtual void RejectMessage(IPCMessage reply, int error_code) OVERRIDE;
+ virtual void RejectMessage(IPCMessage request, int error_code) OVERRIDE;
virtual mach_port_t GetServerPort() const OVERRIDE;
private:
« no previous file with comments | « sandbox/mac/launchd_interception_server.cc ('k') | sandbox/mac/mach_message_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698