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

Unified Diff: base/test/android/java/src/org/chromium/base/LaunchClientResult.java

Issue 2735113003: Changing SpawnChild to return a struct.
Patch Set: Created 3 years, 9 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: 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;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698