blob: 38a0e0a0c32de4be697018e6b944a1fca07f4348 [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.mojom;
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);
};