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

Unified Diff: remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java

Issue 1888653002: [remoting android] Initialize It2Me host and implement Connect() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/re-upload since Reitveld is confused Created 4 years, 8 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
« no previous file with comments | « remoting/android/host/src/org/chromium/chromoting/host/MainActivity.java ('k') | remoting/host/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
diff --git a/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java b/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
index b1c9aa1b41f97999ff5b0cf7bbc6dece2b2902ce..3a9c988a93df42163e0539dbd90a897c46c53eaf 100644
--- a/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
+++ b/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
@@ -39,4 +39,16 @@ public class Host {
}
private native void nativeDestroy(long nativeJniHost);
+
+ public void connect(String userName, String authToken) {
+ nativeConnect(mNativeJniHost, userName, authToken);
+ }
+
+ private native void nativeConnect(long nativeJniHost, String userName, String authToken);
+
+ public void disconnect() {
+ nativeDisconnect(mNativeJniHost);
+ }
+
+ private native void nativeDisconnect(long nativeJniHost);
}
« no previous file with comments | « remoting/android/host/src/org/chromium/chromoting/host/MainActivity.java ('k') | remoting/host/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698