9 #include "WebLoadRequestCompletionCallback.h"
10 #include "ICityThemesService.h"
11 #include "IWebLoadRequest.h"
12 #include "CallbackCollection.h"
16 #include "PendingWebRequestsContainer.h"
22 class IStreamingVolume;
35 int TotalUrlsToLoad()
const {
return m_totalUrlsToLoad; }
36 int UrlsErrored()
const {
return m_erroredRequests; }
37 int Urls404ed()
const {
return m_fourOhFourRequests; }
38 int UrlsLoaded()
const {
return TotalUrlsToLoad() - m_numberUrlsRemainingLoad; }
40 float PercentCompleted()
const;
41 bool CurrentlyPrecaching()
const {
return m_numberUrlsRemainingLoad > 0; }
42 bool IsCancelling()
const {
return false; }
44 void CancelPrecaching();
46 bool CanPrecache(
double altitude);
60 const static int MAX_PRECACHE_REQUESTS_IN_FLIGHT = 10;
62 int m_totalUrlsToLoad;
63 int m_numberUrlsRemainingLoad;
64 int m_requestsInFlightCount;
65 int m_erroredRequests;
66 int m_fourOhFourRequests;
68 std::deque<std::string> m_requestsToIssue;
82 void EnqueueRequest(
const std::string& url);
83 void PrecacheCustomBuildingTextures(
const Web::TResourceData* data);
84 void OnWebLoadRequestCompleted(
IWebResponse& webResponse);