Exploit database

GH-839c07bcf7b2d736ed82c382de889ad5

valencenavy/isolatedanarchy-public

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-87492

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files1,003Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

gen/mojo/public/mojom/base/time.mojom-data-view.h

Text · 3,677 bytes
// mojo/public/mojom/base/time.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef MOJO_PUBLIC_MOJOM_BASE_TIME_MOJOM_DATA_VIEW_H_
#define MOJO_PUBLIC_MOJOM_BASE_TIME_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"

#include "mojo/public/mojom/base/time.mojom-shared-internal.h"


namespace mojo_base::mojom {
class TimeDataView;

class JSTimeDataView;

class TimeDeltaDataView;

class TimeTicksDataView;



}  // mojo_base::mojom


namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::mojo_base::mojom::TimeDataView> {
  using Data = ::mojo_base::mojom::internal::Time_Data;
  using DataAsArrayElement = Pointer<Data>;
  static constexpr MojomTypeCategory category = MojomTypeCategory::kStruct;
};

template <>
struct MojomTypeTraits<::mojo_base::mojom::JSTimeDataView> {
  using Data = ::mojo_base::mojom::internal::JSTime_Data;
  using DataAsArrayElement = Pointer<Data>;
  static constexpr MojomTypeCategory category = MojomTypeCategory::kStruct;
};

template <>
struct MojomTypeTraits<::mojo_base::mojom::TimeDeltaDataView> {
  using Data = ::mojo_base::mojom::internal::TimeDelta_Data;
  using DataAsArrayElement = Pointer<Data>;
  static constexpr MojomTypeCategory category = MojomTypeCategory::kStruct;
};

template <>
struct MojomTypeTraits<::mojo_base::mojom::TimeTicksDataView> {
  using Data = ::mojo_base::mojom::internal::TimeTicks_Data;
  using DataAsArrayElement = Pointer<Data>;
  static constexpr MojomTypeCategory category = MojomTypeCategory::kStruct;
};

}  // namespace internal
}  // namespace mojo


namespace mojo_base::mojom {


class TimeDataView {
 public:
  TimeDataView() = default;

  TimeDataView(
      internal::Time_Data* data,
      mojo::Message* message)
      : data_(data) {}

  bool is_null() const { return !data_; }
  int64_t internal_value() const {
    return data_->internal_value;
  }
 private:
  internal::Time_Data* data_ = nullptr;
};


class JSTimeDataView {
 public:
  JSTimeDataView() = default;

  JSTimeDataView(
      internal::JSTime_Data* data,
      mojo::Message* message)
      : data_(data) {}

  bool is_null() const { return !data_; }
  double msec() const {
    return data_->msec;
  }
 private:
  internal::JSTime_Data* data_ = nullptr;
};


class TimeDeltaDataView {
 public:
  TimeDeltaDataView() = default;

  TimeDeltaDataView(
      internal::TimeDelta_Data* data,
      mojo::Message* message)
      : data_(data) {}

  bool is_null() const { return !data_; }
  int64_t microseconds() const {
    return data_->microseconds;
  }
 private:
  internal::TimeDelta_Data* data_ = nullptr;
};


class TimeTicksDataView {
 public:
  TimeTicksDataView() = default;

  TimeTicksDataView(
      internal::TimeTicks_Data* data,
      mojo::Message* message)
      : data_(data) {}

  bool is_null() const { return !data_; }
  int64_t internal_value() const {
    return data_->internal_value;
  }
 private:
  internal::TimeTicks_Data* data_ = nullptr;
};


}  // mojo_base::mojom

#endif  // MOJO_PUBLIC_MOJOM_BASE_TIME_MOJOM_DATA_VIEW_H_