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

Unified Diff: mojo/system/message_in_transit.cc

Issue 163023004: Mojo: Move the header bits of MessageInTransit into a separate struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new version Created 6 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
« mojo/system/message_in_transit.h ('K') | « mojo/system/message_in_transit.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/message_in_transit.cc
diff --git a/mojo/system/message_in_transit.cc b/mojo/system/message_in_transit.cc
index 42b85ffc91c62ee9fe327573fd176e8edd36b104..89f1dad0777e2483db396551d183ae2ee6552d57 100644
--- a/mojo/system/message_in_transit.cc
+++ b/mojo/system/message_in_transit.cc
@@ -76,16 +76,9 @@ MessageInTransit::MessageInTransit(uint32_t data_size,
Subtype subtype,
uint32_t num_bytes,
uint32_t num_handles)
- : data_size_(data_size),
- type_(type),
- subtype_(subtype),
- source_id_(kInvalidEndpointId),
- destination_id_(kInvalidEndpointId),
- num_bytes_(num_bytes),
- num_handles_(num_handles),
- reserved0_(0),
- reserved1_(0) {
- DCHECK_GE(data_size_, num_bytes_);
+ : header_(data_size, type, subtype, kInvalidEndpointId, kInvalidEndpointId,
+ num_bytes, num_handles) {
+ DCHECK_GE(header()->data_size, header()->num_bytes);
}
} // namespace system
« mojo/system/message_in_transit.h ('K') | « mojo/system/message_in_transit.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698