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

Unified Diff: webkit/browser/blob/blob_url_request_job_factory.cc

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 2 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
« no previous file with comments | « webkit/browser/blob/blob_url_request_job_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/blob/blob_url_request_job_factory.cc
diff --git a/webkit/browser/blob/blob_url_request_job_factory.cc b/webkit/browser/blob/blob_url_request_job_factory.cc
index ed0a400e2ff78a6c6a047cfa07acebcc7040d240..f36e0a545566b15c5422c368b75f5911b1b0d61b 100644
--- a/webkit/browser/blob/blob_url_request_job_factory.cc
+++ b/webkit/browser/blob/blob_url_request_job_factory.cc
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/strings/string_util.h"
+#include "net/base/request_priority.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_job_factory.h"
#include "webkit/browser/blob/blob_data_handle.h"
@@ -28,15 +29,15 @@ BlobDataHandle* GetRequestedBlobDataHandle(net::URLRequest* request) {
} // namespace
// static
-net::URLRequest* BlobProtocolHandler::CreateBlobRequest(
+scoped_ptr<net::URLRequest> BlobProtocolHandler::CreateBlobRequest(
scoped_ptr<BlobDataHandle> blob_data_handle,
const net::URLRequestContext* request_context,
net::URLRequest::Delegate* request_delegate) {
const GURL kBlobUrl("blob://see_user_data/");
- net::URLRequest* request = request_context->CreateRequest(
- kBlobUrl, request_delegate);
- SetRequestedBlobDataHandle(request, blob_data_handle.Pass());
- return request;
+ scoped_ptr<net::URLRequest> request = request_context->CreateRequest(
+ kBlobUrl, net::DEFAULT_PRIORITY, request_delegate);
+ SetRequestedBlobDataHandle(request.get(), blob_data_handle.Pass());
+ return request.Pass();
}
// static
« no previous file with comments | « webkit/browser/blob/blob_url_request_job_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698