driver.h 858 B

1234567891011121314151617181920212223
  1. // Copyright 2022 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. #ifndef MOJO_CORE_IPCZ_DRIVER_DRIVER_H_
  5. #define MOJO_CORE_IPCZ_DRIVER_DRIVER_H_
  6. #include "mojo/core/system_impl_export.h"
  7. #include "third_party/ipcz/include/ipcz/ipcz.h"
  8. namespace mojo::core::ipcz_driver {
  9. // The IpczDriver implementation provided by Mojo. This driver uses a transport
  10. // based on mojo::core::Channel, and shared memory is implemented using //base
  11. // shared memory APIs.
  12. //
  13. // The driver also supports boxing of platform handles and shared memory regions
  14. // to simplify the transition of the Mojo bindings implementation to ipcz.
  15. MOJO_SYSTEM_IMPL_EXPORT extern const IpczDriver kDriver;
  16. } // namespace mojo::core::ipcz_driver
  17. #endif // MOJO_CORE_IPCZ_DRIVER_DRIVER_H_