OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/nacl/nacl_ipc_adapter.h" | 5 #include "chrome/nacl/nacl_ipc_adapter.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 | 721 |
722 header.payload_size = static_cast<uint32>(msg.payload_size()); | 722 header.payload_size = static_cast<uint32>(msg.payload_size()); |
723 header.routing = msg.routing_id(); | 723 header.routing = msg.routing_id(); |
724 header.type = msg.type(); | 724 header.type = msg.type(); |
725 header.flags = msg.flags(); | 725 header.flags = msg.flags(); |
726 header.num_fds = static_cast<int>(rewritten_msg->desc_count()); | 726 header.num_fds = static_cast<int>(rewritten_msg->desc_count()); |
727 | 727 |
728 rewritten_msg->SetData(header, msg.payload(), msg.payload_size()); | 728 rewritten_msg->SetData(header, msg.payload(), msg.payload_size()); |
729 locked_data_.to_be_received_.push(rewritten_msg); | 729 locked_data_.to_be_received_.push(rewritten_msg); |
730 } | 730 } |
731 | |
OLD | NEW |