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

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

Issue 319273003: Third Party Authentication for Android Part II - Java Native Interface plumbing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: JNI plumbing Created 6 years, 6 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: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
index 472c19c7cb870f7bec2e5d7230b91c19ca777b08..81e94ccd9de4202caf5cedb919bfd7be3986b894 100644
--- a/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
+++ b/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java
@@ -433,4 +433,17 @@ public class JniInterface {
/** Returns the current cursor shape. Called on the graphics thread. */
public static Bitmap getCursorBitmap() { return sCursorBitmap; }
+
+ /**
+ * Third Party Authentication
+ */
+ /** Pops up a third party login page to fetch the token required for authentication.*/
+ @CalledByNative
+ public static void fetchThirdPartyToken(String tokenUrl, String clientId, String scope) {
+ // TODO(kelvinp): Create a intent to fetch the token from the browser
Sergey Ulanov 2014/06/07 01:32:45 call nativeOnThirdPartyTokenFetched() with empty t
kelvinp 2014/06/09 18:42:32 This code is currently not being run. We need to
+ // (Android Third Party Auth - Part III)
+ }
+
+ /* Notify the native code to continue authentication with the |token| and the |sharedSecret| */
+ public static native void nativeOnThirdPartyTokenFetched(String token, String sharedSecret);
}
« no previous file with comments | « no previous file | remoting/client/jni/chromoting_jni_instance.h » ('j') | remoting/client/jni/chromoting_jni_instance.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698