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

Unified Diff: content/browser/service_worker/service_worker_fetch_dispatcher.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/service_worker/service_worker_fetch_dispatcher.cc
diff --git a/content/browser/service_worker/service_worker_fetch_dispatcher.cc b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
index 2d892c777cd8f1f80c8682fdef1efef486a850ab..57ea251bfec66cc2817bc539f8dfb0f0de73b212 100644
--- a/content/browser/service_worker/service_worker_fetch_dispatcher.cc
+++ b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
@@ -26,6 +26,7 @@
#include "content/public/common/browser_side_navigation_policy.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "net/base/request_priority.h"
#include "net/http/http_util.h"
#include "net/log/net_log.h"
#include "net/log/net_log_capture_mode.h"
@@ -46,6 +47,11 @@ class DelegatingURLLoader final : public mojom::URLLoader {
void FollowRedirect() override { loader_->FollowRedirect(); }
+ void SetPriority(net::RequestPriority priority,
+ int intra_priority_value) override {
+ loader_->SetPriority(priority, intra_priority_value);
+ }
+
mojom::URLLoaderPtr CreateInterfacePtrAndBind() {
auto p = binding_.CreateInterfacePtrAndBind();
// This unretained pointer is safe, because |binding_| is owned by |this|
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler_unittest.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698