1 // Copyright 2017 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "mojo/public/cpp/bindings/lib/unserialized_message_context.h" 6 7 namespace mojo { 8 namespace internal { 9 UnserializedMessageContext(const Tag * tag,uint32_t message_name,uint32_t message_flags)10UnserializedMessageContext::UnserializedMessageContext(const Tag* tag, 11 uint32_t message_name, 12 uint32_t message_flags) 13 : tag_(tag) { 14 header_.interface_id = 0; 15 header_.version = 1; 16 header_.name = message_name; 17 header_.flags = message_flags; 18 header_.num_bytes = sizeof(header_); 19 } 20 21 UnserializedMessageContext::~UnserializedMessageContext() = default; 22 23 } // namespace internal 24 } // namespace mojo 25