blob: 3d64bbc6d29f408fd56167b39537df680017f365 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_BACKGROUND_FETCH_BACKGROUND_FETCH_TYPE_CONVERTERS_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_BACKGROUND_FETCH_BACKGROUND_FETCH_TYPE_CONVERTERS_H_
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom-blink.h"
#include "third_party/blink/renderer/modules/background_fetch/background_fetch_options.h"
namespace blink {
class BackgroundFetchRegistration;
}
namespace mojo {
template <>
struct TypeConverter<blink::BackgroundFetchRegistration*,
blink::mojom::blink::BackgroundFetchRegistrationPtr> {
static blink::BackgroundFetchRegistration* Convert(
const blink::mojom::blink::BackgroundFetchRegistrationPtr&
mojo_registration);
};
template <>
struct TypeConverter<blink::mojom::blink::BackgroundFetchOptionsPtr,
const blink::BackgroundFetchOptions*> {
static blink::mojom::blink::BackgroundFetchOptionsPtr Convert(
const blink::BackgroundFetchOptions* options);
};
} // namespace mojo
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_BACKGROUND_FETCH_BACKGROUND_FETCH_TYPE_CONVERTERS_H_