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

Unified Diff: chrome/common/mach_ipc_mac.h

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « chrome/common/libxml_utils.h ('k') | chrome/common/message_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/mach_ipc_mac.h
===================================================================
--- chrome/common/mach_ipc_mac.h (revision 11111)
+++ chrome/common/mach_ipc_mac.h (working copy)
@@ -63,9 +63,9 @@
//
// char messageString[] = "Hello server!\n";
// message.SetData(messageString, strlen(messageString)+1);
+// // timeout 1000ms
+// kern_return_t result = sender.SendMessage(message, 1000);
//
-// kern_return_t result = sender.SendMessage(message, 1000); // timeout 1000ms
-//
#define PRINT_MACH_RESULT(result_, message_) \
printf(message_" %s (%d)\n", mach_error_string(result_), result_ );
@@ -194,9 +194,9 @@
// Represents raw data in our message
struct MessageDataPacket {
- int32_t id; // little-endian
- int32_t data_length; // little-endian
- u_int8_t data[1]; // actual size limited by storage_length_bytes_
+ int32_t id; // little-endian
+ int32_t data_length; // little-endian
+ u_int8_t data[1]; // actual size limited by storage_length_bytes_
};
MessageDataPacket* GetDataPacket();
@@ -222,7 +222,8 @@
u_int8_t padding[1024];
};
- // kEmptyMessageSize needs to have the definition of MachMessageData before it.NNN
+ // kEmptyMessageSize needs to have the definition of MachMessageData before
+ // it.
public:
// The size of an empty message with no data.
static const size_t kEmptyMessageSize = sizeof(mach_msg_header_t) +
« no previous file with comments | « chrome/common/libxml_utils.h ('k') | chrome/common/message_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698