Index: remoting/client/jni/chromoting_jni_instance.h |
diff --git a/remoting/client/jni/chromoting_jni_instance.h b/remoting/client/jni/chromoting_jni_instance.h |
index 08404978db21875efdc95b53a014629cc7f49122..ca89a34fe62ca6dfc54ef925e95efae9444957ba 100644 |
--- a/remoting/client/jni/chromoting_jni_instance.h |
+++ b/remoting/client/jni/chromoting_jni_instance.h |
@@ -17,6 +17,7 @@ |
#include "remoting/client/client_user_interface.h" |
#include "remoting/client/frame_consumer_proxy.h" |
#include "remoting/client/jni/jni_frame_consumer.h" |
+#include "remoting/client/jni/jni_token_fetcher.h" |
#include "remoting/jingle_glue/xmpp_signal_strategy.h" |
#include "remoting/protocol/clipboard_stub.h" |
#include "remoting/protocol/connection_to_host.h" |
@@ -58,6 +59,13 @@ class ChromotingJniInstance |
// up. Must be called before destruction. |
void Cleanup(); |
+ // Requests the android app to fetch a third-party token. |
+ void FetchThirdPartyToken( |
+ const GURL& token_url, |
+ const std::string& client_id, |
+ const std::string& scope, |
+ const base::WeakPtr<JniTokenFetcher> jni_token_fetcher); |
+ |
// Provides the user's PIN and resumes the host authentication attempt. Call |
// on the UI thread once the user has finished entering this PIN into the UI, |
// but only after the UI has been asked to provide a PIN (via FetchSecret()). |