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

Side by Side 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: cl feedback Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.media;
6
7 import android.os.IBinder;
8
9 /**
10 * Class to facilitate mapping (pid, render_frame_id) to an Activity. Should
11 * also handle registering for changes if the render frame is re-parented to
12 * another activity.
13 *
14 * Right now, all of this works on (pid, renderFrameId) pairs. For security,
15 * we might want to switch to some sort of token that's acquired by the renderer
16 * and sent to the DialogSurface. Otherwise, the GPU process can guess at
17 * renderFrameIds for any renderer pid.
18 *
19 * Note also that using pids introduces a race condition, in that one renderer
20 * might fail and be replced with another with the same pid.
21 */
22 interface IDialogSurfaceActivityMapper {
23 /**
24 * Return the window token for the activity that hosts (rendererPid,
25 * renderFrameId). This may return null.
26 */
27 IBinder getWindowToken(int rendererPid, int renderFrameId);
28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698