• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 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/base/process_id_mojom_traits.h"
6 
7 namespace mojo {
8 
Read(mojo_base::mojom::ProcessIdDataView data,base::ProcessId * process_id)9 bool StructTraits<mojo_base::mojom::ProcessIdDataView, base::ProcessId>::Read(
10     mojo_base::mojom::ProcessIdDataView data,
11     base::ProcessId* process_id) {
12   *process_id = static_cast<base::ProcessId>(data.pid());
13   return true;
14 }
15 
16 }  // namespace mojo