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 126ce18196378ab55cacf69c2a66ebeb7469a16e..8fb60232df5912f52e2dfe50876e39ab3ae11248 100644 |
--- a/remoting/client/jni/chromoting_jni_instance.h |
+++ b/remoting/client/jni/chromoting_jni_instance.h |
@@ -17,7 +17,6 @@ |
#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/token_fetcher_proxy.h" |
#include "remoting/jingle_glue/xmpp_signal_strategy.h" |
#include "remoting/protocol/clipboard_stub.h" |
#include "remoting/protocol/connection_to_host.h" |
@@ -35,6 +34,7 @@ class LogToServer; |
} |
class VideoRenderer; |
+class TokenFetcherProxy; |
// ClientUserInterface that indirectly makes and receives JNI calls. |
class ChromotingJniInstance |
@@ -66,6 +66,10 @@ class ChromotingJniInstance |
const std::string& scope, |
const base::WeakPtr<TokenFetcherProxy> token_fetcher_proxy); |
+ // Called by the android app when the token is fetched. |
+ void HandleOnThirdPartyTokenFetched(const std::string& token, |
+ const std::string& shared_secret); |
+ |
// 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()). |
@@ -161,6 +165,7 @@ class ChromotingJniInstance |
XmppSignalStrategy::XmppServerConfig xmpp_config_; |
scoped_ptr<XmppSignalStrategy> signaling_; // Must outlive client_ |
scoped_ptr<client::LogToServer> log_to_server_; |
+ base::WeakPtr<TokenFetcherProxy> token_fetcher_proxy_; |
// Pass this the user's PIN once we have it. To be assigned and accessed on |
// the UI thread, but must be posted to the network thread to call it. |
@@ -182,6 +187,8 @@ class ChromotingJniInstance |
friend class base::RefCountedThreadSafe<ChromotingJniInstance>; |
+ base::WeakPtrFactory<ChromotingJniInstance> weak_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); |
}; |