示例#1
0
 private void alertConcerned(Object... params) {
   Callback callback;
   for (WeakReference<Callback> cb : concerned) {
     callback = cb.get();
     Log.d(TAG, "alerting: " + cb + " = " + callback);
     if (callback != null) {
       callback.callback(params);
     }
   }
   if (throttle != null) {
     throttle.requestDidComplete(this);
   }
 }
示例#2
0
 public void addRequest(WebRequest request) { // filled out by caller
   throttle.addRequest(request);
 }
示例#3
0
 public void addRequest(String url, int type, Callback callback) {
   WebRequest request = new WebRequest(url, type);
   request.addCallback(callback);
   throttle.addRequest(request);
 }