Chromium Code Reviews| OLD | NEW |
|---|---|
| (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. | |
|
watk
2016/07/26 21:34:31
Using pids also theoretically means there is a rac
liberato (no reviews please)
2016/07/26 22:49:16
good point, i added a note.
i doubt that it cause
| |
| 18 */ | |
| 19 interface IDialogSurfaceActivityMapper { | |
| 20 /** | |
| 21 * Return the window token for the activity that hosts (renderPid, | |
|
watk
2016/07/26 21:34:30
rendererPid
liberato (no reviews please)
2016/07/26 22:49:16
Done.
| |
| 22 * renderFrameId). This may return null. | |
| 23 */ | |
| 24 IBinder getWindowToken(int rendererPid, int renderFrameId); | |
| 25 } | |
| OLD | NEW |