Chromium Code Reviews| 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; |
| + } |
| +} |