blob: 6cb50d4bc275a7b0dcecfd4f8280cefcd1104ab2 [file] [log] [blame]
// Copyright 2020 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.
namespace media {
namespace mojom {
class FrameInterfaceFactory;
} // namespace mojom
} // namespace media
namespace url {
class Origin;
} // namespace url
namespace chromecast {
class CastCdmOriginProvider {
// Util function to call sync mojo API to get cdm origin.
// TODO(159346933) Remove once the origin isolation logic is moved outside of
// media service.
static bool GetCdmOrigin(::media::mojom::FrameInterfaceFactory* interfaces,
url::Origin* cdm_origin);
} // namespace chromecast