| Index: content/browser/loader/resource_dispatcher_host_impl.h
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
|
| index 086f39bea06fe3005c338f26f240ae891fe760f6..43c1102f94820a9202a6a3e890ce158f4d05908e 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.h
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.h
|
| @@ -30,6 +30,7 @@
|
| #include "content/browser/loader/global_routing_id.h"
|
| #include "content/browser/loader/resource_loader.h"
|
| #include "content/browser/loader/resource_loader_delegate.h"
|
| +#include "content/browser/loader/resource_request_info_impl.h"
|
| #include "content/browser/loader/resource_scheduler.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/resource_request_body.h"
|
| @@ -343,14 +344,19 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
|
|
|
| // Information about status of a ResourceLoader.
|
| struct LoadInfo {
|
| + LoadInfo();
|
| + ~LoadInfo();
|
| + LoadInfo(const LoadInfo& info);
|
| GURL url;
|
| net::LoadStateWithParam load_state;
|
| uint64_t upload_position;
|
| uint64_t upload_size;
|
| + // Associates the load with a web contents.
|
| + ResourceRequestInfo::WebContentsGetter web_contents_getter;
|
| };
|
|
|
| - // Map from ProcessID+RouteID pair to the "most interesting" LoadState.
|
| - typedef std::map<GlobalRoutingID, LoadInfo> LoadInfoMap;
|
| + // Map from ProcessID+FrameRouteID pair to the "most interesting" LoadState.
|
| + typedef std::map<GlobalFrameRoutingId, LoadInfo> LoadInfoMap;
|
|
|
| // ResourceLoaderDelegate implementation:
|
| ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
|
| @@ -452,7 +458,7 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
|
| // are done as a single callback to avoid spamming the UI thread.
|
| static void UpdateLoadInfoOnUIThread(std::unique_ptr<LoadInfoMap> info_map);
|
|
|
| - // Gets the most interesting LoadInfo for each GlobalRoutingID.
|
| + // Gets the most interesting LoadInfo for each GlobalFrameRoutingID.
|
| std::unique_ptr<LoadInfoMap> GetLoadInfoForAllRoutes();
|
|
|
| // Checks all pending requests and updates the load info if necessary.
|
|
|