Index: base/test/android/java/src/org/chromium/base/LaunchClientResult.java |
diff --git a/base/test/android/java/src/org/chromium/base/LaunchClientResult.java b/base/test/android/java/src/org/chromium/base/LaunchClientResult.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5b07e34b052ec45752eec5834ded110422163a05 |
--- /dev/null |
+++ b/base/test/android/java/src/org/chromium/base/LaunchClientResult.java |
@@ -0,0 +1,40 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.base; |
+ |
+import org.chromium.base.annotations.CalledByNative; |
+import org.chromium.base.annotations.JNINamespace; |
+ |
+/** |
+ * Contains the information for a process started with LaunchClientResult.launchClient(). |
+ */ |
+@JNINamespace("base::android") |
+public final class LaunchClientResult { |
+ private final int mPid; |
+ private final ParcelableChannelClient mParcelableChannelClient; |
+ private final ParcelableChannelServer mParcelableChannelServer; |
+ |
+ public LaunchClientResult(int pid, ParcelableChannelClient parcelableChannelClient, |
+ ParcelableChannelServer parcelableChannelServer) { |
+ mPid = pid; |
+ mParcelableChannelClient = parcelableChannelClient; |
+ mParcelableChannelServer = parcelableChannelServer; |
+ } |
+ |
+ @CalledByNative |
+ public int getPid() { |
+ return mPid; |
+ } |
+ |
+ @CalledByNative |
+ public ParcelableChannelClient getParcelableChannelClient() { |
+ return mParcelableChannelClient; |
+ } |
+ |
+ @CalledByNative |
+ public ParcelableChannelServer getParcelableChannelServer() { |
+ return mParcelableChannelServer; |
+ } |
+} |