blob: 3c628f2a3dae3919749db97ecffa154c286526ab [file] [log] [blame]
// Copyright 2015 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.
module media.interfaces;
import "media/mojo/interfaces/audio_decoder.mojom";
import "media/mojo/interfaces/content_decryption_module.mojom";
import "media/mojo/interfaces/renderer.mojom";
// A factory interface to create media services. Renderers can only access
// ContentDecryptionModules created in the same factory.
interface ServiceFactory {
// Creates an AudioDecoder service.
CreateAudioDecoder(AudioDecoder& audio_decoder);
// Creates a Renderer service.
CreateRenderer(Renderer& renderer);
// Creates a ContentDecryptionModule service.
CreateCdm(ContentDecryptionModule& cdm);
};