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

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: 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 12929af8b178045495b8532d605456ce1f4d7dc6..1d2d896223c1e1c7a9e7c0a271b4113bf33e38b7 100644
--- a/blimp/client/app/android/blimp_client_session_android.cc
+++ b/blimp/client/app/android/blimp_client_session_android.cc
@@ -93,6 +93,16 @@ void BlimpClientSessionAndroid::OnDisconnected(int result) {
env, net::ErrorToShortString(result)).obj());
}
+void BlimpClientSessionAndroid::OnPacketReceived(int bytes) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_BlimpClientSession_onPacketReceived(env, java_obj_.obj(), bytes);
+}
+
+void BlimpClientSessionAndroid::OnPacketSent(int bytes) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_BlimpClientSession_onPacketSent(env, java_obj_.obj(), bytes);
+}
+
void BlimpClientSessionAndroid::Destroy(JNIEnv* env,
const JavaParamRef<jobject>& jobj) {
delete this;

Powered by Google App Engine
This is Rietveld 408576698