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

Unified Diff: blimp/client/core/android/java/src/org/chromium/blimp/core/session/EngineInfo.java

Issue 2322843002: Propagate connection info to Blimp android UI. (Closed)
Patch Set: Remove BlimpStringUtil after discussion of string res files. Created 4 years, 3 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/core/android/java/src/org/chromium/blimp/core/session/EngineInfo.java
diff --git a/blimp/client/core/android/java/src/org/chromium/blimp/core/session/EngineInfo.java b/blimp/client/core/android/java/src/org/chromium/blimp/core/session/EngineInfo.java
new file mode 100644
index 0000000000000000000000000000000000000000..4be86ac406d382927201e9df7160145f32456690
--- /dev/null
+++ b/blimp/client/core/android/java/src/org/chromium/blimp/core/session/EngineInfo.java
@@ -0,0 +1,42 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.blimp.core.session;
+
+/**
+ * Blimp Engine connection info.
+ */
+public class EngineInfo {
David Trainor- moved to gerrit 2016/09/09 19:33:47 Does it make sense to set this data from native an
xingliu 2016/09/10 22:45:46 Removed, now the ip is not cached anywhere in Java
+ private String mIpAddress = "";
+ private boolean mConnected = false;
+
+ /**
+ * @return If we are connected to the engine.
+ */
+ public boolean isConnected() {
+ return mConnected;
+ }
+
+ /**
+ * Set connection status.
+ * @param connected If we are connected.
+ */
+ public void setConnected(boolean connected) {
+ this.mConnected = connected;
+ }
+
+ /**
+ * @return Ip address of the engine.
+ */
+ public String getEngineIp() {
+ return mIpAddress;
+ }
+
+ /**
+ * Set the engine ip.
+ */
+ public void setEngineIp(String ip) {
+ mIpAddress = ip;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698