}
}
}
}
RequestedResource resource = null;
// Request next image.
synchronized (_imageQueue) {
if (_imageQueue.size() > 0) {
resource = (RequestedResource) _imageQueue.elementAt(0);
_imageQueue.removeElementAt(0);
}
}
if (resource != null) {
final HttpConnection connection =
Utilities.makeConnection(resource.getUrl(), resource
.getRequestHeaders(), null);
resource.setHttpConnection(connection);
// Signal to the browser field that resource is ready.
if (_browserField != null) {
_browserField.resourceReady(resource);
}