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

Unified Diff: remoting/client/jni/chromoting_jni_instance.cc

Issue 126123002: Show connection type in web-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing Android implementation. Created 6 years, 11 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/client/jni/chromoting_jni_instance.h ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/chromoting_jni_instance.cc
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc
index 641fcd8ab877b6584194103730961cc6ea7f095d..3c7866b358c86c5368fff246769e94f0e8417b9c 100644
--- a/remoting/client/jni/chromoting_jni_instance.cc
+++ b/remoting/client/jni/chromoting_jni_instance.cc
@@ -216,6 +216,14 @@ void ChromotingJniInstance::OnConnectionReady(bool ready) {
// We ignore this message, since OnConnectionState tells us the same thing.
}
+void ChromotingJniInstance::OnRouteChanged(
+ const std::string& channel_name,
+ const protocol::TransportRoute& route) {
+ std::string message = "Channel " + channel_name + " using " +
+ protocol::TransportRoute::GetTypeString(route.type) + " connection.";
+ __android_log_print(ANDROID_LOG_INFO, "route", "%s", message.c_str());
+}
+
void ChromotingJniInstance::SetCapabilities(const std::string& capabilities) {
NOTIMPLEMENTED();
}
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.h ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698