blob: 8a856b81bd20e820e2af4656e8851fb1923be8c5 [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.
#include "chromecast/media/cdm/cast_cdm_origin_provider.h"
#include "media/mojo/mojom/frame_interface_factory.mojom.h"
#include "mojo/public/cpp/bindings/sync_call_restrictions.h"
namespace chromecast {
// static
bool CastCdmOriginProvider::GetCdmOrigin(
::media::mojom::FrameInterfaceFactory* interfaces,
url::Origin* cdm_origin) {
mojo::SyncCallRestrictions::ScopedAllowSyncCall allow_sync_call;
return interfaces->GetCdmOrigin(cdm_origin);
}
} // namespace chromecast