| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
| 6 | 6 |
| 7 import org.chromium.chromoting.jni.Client; | 7 import org.chromium.chromoting.jni.Client; |
| 8 import org.chromium.chromoting.jni.ConnectionListener; | 8 import org.chromium.chromoting.jni.ConnectionListener; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 public void onHostUpdated() { | 129 public void onHostUpdated() { |
| 130 // Not implemented Yet. | 130 // Not implemented Yet. |
| 131 } | 131 } |
| 132 | 132 |
| 133 @Override | 133 @Override |
| 134 public void onHostDeleted() { | 134 public void onHostDeleted() { |
| 135 // Not implemented Yet. | 135 // Not implemented Yet. |
| 136 } | 136 } |
| 137 | 137 |
| 138 @Override | 138 @Override |
| 139 public void onError(HostListManager.Error error) { | 139 public void onError(HostListManager.RequestType type, HostListManager.Error
error) { |
| 140 // Connection failed and reloading the host list also failed, so report
the connection | 140 // Connection failed and reloading the host list also failed, so report
the connection |
| 141 // error. | 141 // error. |
| 142 mConnectionListener.onConnectionState(ConnectionListener.State.FAILED, | 142 mConnectionListener.onConnectionState(ConnectionListener.State.FAILED, |
| 143 ConnectionListener.Error.PEER_IS_OFFLINE); | 143 ConnectionListener.Error.PEER_IS_OFFLINE); |
| 144 | 144 |
| 145 // Notify the caller that the host list failed to load, so the UI is upd
ated accordingly. | 145 // Notify the caller that the host list failed to load, so the UI is upd
ated accordingly. |
| 146 // The currently-displayed host list is not likely to be valid any more. | 146 // The currently-displayed host list is not likely to be valid any more. |
| 147 mHostListCallback.onError(error); | 147 mHostListCallback.onError(type, error); |
| 148 } | 148 } |
| 149 } | 149 } |
| OLD | NEW |