Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Unified Diff: media/mojo/interfaces/provision_fetcher.mojom

Issue 1466633002: media: Add ProvisionFetcher mojo interface and implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/mojo/interfaces/provision_fetcher.mojom
diff --git a/media/mojo/interfaces/provision_fetcher.mojom b/media/mojo/interfaces/provision_fetcher.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..e034e72b3605813dedf2438374fb482cf06b1361
--- /dev/null
+++ b/media/mojo/interfaces/provision_fetcher.mojom
@@ -0,0 +1,18 @@
+// 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;
Ken Rockot(use gerrit already) 2015/11/24 17:35:58 BTW: I think we'd like to standardize on .mojom fo
xhwang 2015/11/24 19:43:21 I asked about this before and at that time there w
Ken Rockot(use gerrit already) 2015/11/24 20:05:29 Indeed, and totally understandable
+
+// An interface to retrieve provision information for Android MediaDrm.
+// See Android documentation about MediaDrm provisioning:
+// https://developer.android.com/reference/android/media/MediaDrm.ProvisionRequest.html
+
+interface ProvisionFetcher {
+ // Requests the provision information with |default_url| and |request_data|
+ // and returns |result| and the |response|. The input parameters |default_url|
+ // and |request_data| corresponds to Java class MediaDrm.ProvisionRequest.
+ // |response| will be null iff |result| is false.
Ken Rockot(use gerrit already) 2015/11/24 17:35:58 Why bother having |result| at all if |response| is
xhwang 2015/11/24 19:43:21 That would work. But personally I'd like to be exp
+ Retrieve(string default_url, string request_data)
+ => (bool result, string? response);
+};

Powered by Google App Engine
This is Rietveld 408576698