[M120 Migration][MM] Framerate calculation
[platform/framework/web/chromium-efl.git] / media / mojo / mojom / provision_fetcher.mojom
1 // Copyright 2015 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module media.mojom;
6
7 import "url/mojom/url.mojom";
8
9 // An interface to retrieve provision information for CDM. This includes Android
10 // MediaDrm. See Android documentation about MediaDrm provisioning:
11 // https://developer.android.com/reference/android/media/MediaDrm.ProvisionRequest.html
12
13 interface ProvisionFetcher {
14   // Requests the provision information with |default_url| and |request_data|
15   // and returns |result| and the |response|. On Android, the input parameters
16   // |default_url| and |request_data| corresponds to Java class
17   // MediaDrm.ProvisionRequest. |response| will be empty iff |result| is false.
18   Retrieve(url.mojom.Url default_url, string request_data)
19       => (bool result, string response);
20 };