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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java

Issue 2535923003: Use JNI UnguessableToken in ScopedSurfaceRequest (Closed)
Patch Set: 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: content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
index 15ea813ccb7fc07b5b647eacae1ea507bee576c2..bf342828ab96f37af6f325348fc88c954a72cf99 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
@@ -21,6 +21,7 @@ import org.chromium.base.CpuFeatures;
import org.chromium.base.Log;
import org.chromium.base.ThreadUtils;
import org.chromium.base.TraceEvent;
+import org.chromium.base.UnguessableToken;
import org.chromium.base.VisibleForTesting;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
@@ -844,7 +845,7 @@ public class ChildProcessLauncher {
@Override
public void forwardSurfaceForSurfaceRequest(
- long requestTokenHigh, long requestTokenLow, Surface surface) {
+ UnguessableToken requestToken, Surface surface) {
// Do not allow a malicious renderer to connect to a producer. This is only used
// from stream textures managed by the GPU process.
if (callbackType != CALLBACK_FOR_GPU_PROCESS) {
@@ -852,7 +853,7 @@ public class ChildProcessLauncher {
return;
}
- nativeCompleteScopedSurfaceRequest(requestTokenHigh, requestTokenLow, surface);
+ nativeCompleteScopedSurfaceRequest(requestToken, surface);
}
@Override
@@ -995,7 +996,7 @@ public class ChildProcessLauncher {
private static native void nativeEstablishSurfacePeer(
int pid, Surface surface, int primaryID, int secondaryID);
private static native void nativeCompleteScopedSurfaceRequest(
- long requestTokenHigh, long requestTokenLow, Surface surface);
+ UnguessableToken requestToken, Surface surface);
private static native boolean nativeIsSingleProcess();
private static native Surface nativeGetViewSurface(int surfaceId);
}

Powered by Google App Engine
This is Rietveld 408576698