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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2552703003: Make reprioritization IPC batch rather than per-request.
Patch Set: Fix some typos. Created 4 years 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 side-by-side diff with in-line comments
Download patch
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 5d02f1d3ceac904e1011da5ae0b0d1cf06953064..fe8d766209ac8db94b72c1e924d0874db43d3c69 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -28,6 +28,7 @@
#include "content/browser/loader/global_routing_id.h"
#include "content/browser/loader/resource_loader_delegate.h"
#include "content/common/content_export.h"
+#include "content/common/resource_priority_change_info.h"
#include "content/common/url_loader.mojom.h"
#include "content/public/browser/global_request_id.h"
#include "content/public/browser/resource_dispatcher_host.h"
@@ -624,10 +625,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
void OnCancelRequest(ResourceRequesterInfo* requester_info, int request_id);
void OnReleaseDownloadedFile(ResourceRequesterInfo* requester_info,
int request_id);
- void OnDidChangePriority(ResourceRequesterInfo* requester_info,
- int request_id,
- net::RequestPriority new_priority,
- int intra_priority_value);
+ void OnDidChangePriority(
+ ResourceRequesterInfo* requester_info,
+ const std::vector<ResourcePriorityChangeInfo>& priority_changes);
// Creates ResourceRequestInfoImpl for a download or page save.
// |download| should be true if the request is a file download.

Powered by Google App Engine
This is Rietveld 408576698