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

Unified Diff: content/browser/loader/mojo_async_resource_handler.cc

Issue 2646343007: [Mojo-Loading] Implement URLLoader::SetPriority (Closed)
Patch Set: fix Created 3 years, 11 months 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/mojo_async_resource_handler.cc
diff --git a/content/browser/loader/mojo_async_resource_handler.cc b/content/browser/loader/mojo_async_resource_handler.cc
index 826db44a036524997b418eeaf630fd3eab8ad017..f1f0f4c1a3dd83cab24afe9d4a96f6b378eebe6a 100644
--- a/content/browser/loader/mojo_async_resource_handler.cc
+++ b/content/browser/loader/mojo_async_resource_handler.cc
@@ -21,6 +21,7 @@
#include "content/browser/loader/resource_controller.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/loader/resource_request_info_impl.h"
+#include "content/browser/loader/resource_scheduler.h"
#include "content/browser/loader/upload_progress_tracker.h"
#include "content/common/resource_request_completion_status.h"
#include "content/public/browser/global_request_id.h"
@@ -342,6 +343,12 @@ void MojoAsyncResourceHandler::FollowRedirect() {
controller()->Resume();
}
+void MojoAsyncResourceHandler::SetPriority(net::RequestPriority priority,
+ int32_t intra_priority_value) {
+ ResourceDispatcherHostImpl::Get()->scheduler()->ReprioritizeRequest(
+ request(), priority, intra_priority_value);
+}
+
void MojoAsyncResourceHandler::OnWritableForTesting() {
OnWritable(MOJO_RESULT_OK);
}
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler.h ('k') | content/browser/loader/mojo_async_resource_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698