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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/SessionConnector.java

Issue 1968283002: Implementing Host List Context Menu and Delete Feature (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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698