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

Unified Diff: blimp/client/app/android/blimp_client_session_android.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Built debug UI Created 4 years, 7 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: blimp/client/app/android/blimp_client_session_android.cc
diff --git a/blimp/client/app/android/blimp_client_session_android.cc b/blimp/client/app/android/blimp_client_session_android.cc
index 88044493f3cedd1cd6d89c77757371f059712be6..bbe7841b56f43070df520558201983a59f039704 100644
--- a/blimp/client/app/android/blimp_client_session_android.cc
+++ b/blimp/client/app/android/blimp_client_session_android.cc
@@ -93,6 +93,14 @@ void BlimpClientSessionAndroid::OnDisconnected(int result) {
env, net::ErrorToShortString(result)).obj());
}
+void BlimpClientSessionAndroid::UpdateDebugInfo(int received,
+ int sent,
+ int commits) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_BlimpClientSession_updateDebugInfo(env, java_obj_.obj(), received, sent,
+ commits);
+}
+
void BlimpClientSessionAndroid::Destroy(JNIEnv* env,
const JavaParamRef<jobject>& jobj) {
delete this;
@@ -113,5 +121,12 @@ void BlimpClientSessionAndroid::OnAssignmentConnectionAttempted(
BlimpClientSession::OnAssignmentConnectionAttempted(result, assignment);
}
+void BlimpClientSessionAndroid::EnableDebugInfo(
Khushal 2016/05/18 00:23:00 Hmmm, I don't think we really need to explicitly d
Khushal 2016/05/18 20:41:10 Ignore this part of the comment, I thought you wer
shaktisahu 2016/05/19 21:39:18 I am not disabling the stat collection. The stats
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jobj,
+ jboolean enable) {
+ BlimpClientSession::EnableDebugInfo(enable);
+}
+
} // namespace client
} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698