| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.common; | 5 package org.chromium.content.common; |
| 6 | 6 |
| 7 import org.chromium.content.common.SurfaceWrapper; | 7 import org.chromium.content.common.SurfaceWrapper; |
| 8 import android.view.Surface; | 8 import android.view.Surface; |
| 9 | 9 |
| 10 interface IChildProcessCallback { | 10 interface IChildProcessCallback { |
| 11 | 11 |
| 12 // Conduit to pass a Surface from the sandboxed renderer to the plugin. | 12 // Conduit to pass a Surface from the sandboxed renderer to the plugin. |
| 13 void establishSurfacePeer( | 13 void establishSurfacePeer( |
| 14 int pid, in Surface surface, int primaryID, int secondaryID); | 14 int pid, in Surface surface, int primaryID, int secondaryID); |
| 15 | 15 |
| 16 void fulfillScopedSurfaceRequest(long request_id, in Surface surface); |
| 17 |
| 16 SurfaceWrapper getViewSurface(int surfaceId); | 18 SurfaceWrapper getViewSurface(int surfaceId); |
| 17 | 19 |
| 18 void registerSurfaceTextureSurface( | 20 void registerSurfaceTextureSurface( |
| 19 int surfaceTextureId, int clientId, in Surface surface); | 21 int surfaceTextureId, int clientId, in Surface surface); |
| 20 | 22 |
| 21 void unregisterSurfaceTextureSurface(int surfaceTextureId, int clientId); | 23 void unregisterSurfaceTextureSurface(int surfaceTextureId, int clientId); |
| 22 | 24 |
| 23 SurfaceWrapper getSurfaceTextureSurface(int surfaceTextureId); | 25 SurfaceWrapper getSurfaceTextureSurface(int surfaceTextureId); |
| 24 | 26 |
| 25 // Callback to inform native that the download service has accepted or | 27 // Callback to inform native that the download service has accepted or |
| 26 // rejected the download. | 28 // rejected the download. |
| 27 void onDownloadStarted(boolean started, int downloadId); | 29 void onDownloadStarted(boolean started, int downloadId); |
| 28 } | 30 } |
| OLD | NEW |