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

Unified Diff: content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl

Issue 2626413004: Bind Android ChildProcessServices to a specific client PID. (Closed)
Patch Set: Add OWNERS file Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl
diff --git a/content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl b/content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl
index dffe3adc4b19851534957cac5c23c95cb29190a0..1f5ec5c38ebbb173e6f2fcdaff60bc02d00b1389 100644
--- a/content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl
+++ b/content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl
@@ -10,6 +10,11 @@ import android.view.Surface;
import android.os.Bundle;
interface IChildProcessService {
+ // On the first call to this method, the service will record the calling PID
+ // and return true. Subsequent calls will only return true if the calling PID
+ // is the same as the recorded one.
+ boolean bindToCaller();
+
// Sets up the initial IPC channel and returns the pid of the child process.
int setupConnection(in Bundle args, IChildProcessCallback callback);

Powered by Google App Engine
This is Rietveld 408576698