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

Unified Diff: media/base/android/java/src/org/chromium/media/IDialogSurfaceActivityMapper.aidl

Issue 2178973004: DialogSurfaceManager implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed whitespace changes Created 4 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/base/android/java/src/org/chromium/media/IDialogSurfaceActivityMapper.aidl
diff --git a/media/base/android/java/src/org/chromium/media/IDialogSurfaceActivityMapper.aidl b/media/base/android/java/src/org/chromium/media/IDialogSurfaceActivityMapper.aidl
new file mode 100644
index 0000000000000000000000000000000000000000..a9d6939dbe0c25eff18c277ce9edd2e900c35df0
--- /dev/null
+++ b/media/base/android/java/src/org/chromium/media/IDialogSurfaceActivityMapper.aidl
@@ -0,0 +1,27 @@
+// Copyright 2016 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.
+
+package org.chromium.media;
+
+import android.os.IBinder;
+
+import org.chromium.base.UnguessableToken;
+
+/**
+ * Class to facilitate mapping |frameToken| to an Activity. It will
+ * also handle registering for changes if the render frame is re-parented to
+ * another activity.
+ *
+ * |frameToken| is an unguessable token that's provided by the browser, so that
+ * the renderer can identify a render frame to the untrusted GPU process,
+ * without it being able to guess the identity of other frames.
+ */
+interface IDialogSurfaceActivityMapper {
+ /**
+ * Eventually call back holder::onWindowToken with the window token for the
+ * activity that hosts |frameToken|. This will call back, but it may call
+ * back with null.
+ */
+ void postWindowToken(in UnguessableToken frameToken, IDialogSurfaceHolder holder);
+}

Powered by Google App Engine
This is Rietveld 408576698