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

Side by Side Diff: webkit/browser/blob/blob_url_request_job_factory.h

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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ 5 #ifndef WEBKIT_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_
6 #define WEBKIT_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ 6 #define WEBKIT_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 namespace webkit_blob { 27 namespace webkit_blob {
28 28
29 class BlobData; 29 class BlobData;
30 class BlobDataHandle; 30 class BlobDataHandle;
31 class BlobStorageContext; 31 class BlobStorageContext;
32 32
33 class WEBKIT_STORAGE_BROWSER_EXPORT BlobProtocolHandler 33 class WEBKIT_STORAGE_BROWSER_EXPORT BlobProtocolHandler
34 : public net::URLRequestJobFactory::ProtocolHandler { 34 : public net::URLRequestJobFactory::ProtocolHandler {
35 public: 35 public:
36 // A helper to manufacture an URLRequest to retrieve the given blob. 36 // A helper to manufacture an URLRequest to retrieve the given blob.
37 static net::URLRequest* CreateBlobRequest( 37 static scoped_ptr<net::URLRequest> CreateBlobRequest(
38 scoped_ptr<BlobDataHandle> blob_data_handle, 38 scoped_ptr<BlobDataHandle> blob_data_handle,
39 const net::URLRequestContext* request_context, 39 const net::URLRequestContext* request_context,
40 net::URLRequest::Delegate* request_delegate); 40 net::URLRequest::Delegate* request_delegate);
41 41
42 // This class ignores the request's URL and uses the value given 42 // This class ignores the request's URL and uses the value given
43 // to SetRequestedBlobDataHandle instead. 43 // to SetRequestedBlobDataHandle instead.
44 static void SetRequestedBlobDataHandle( 44 static void SetRequestedBlobDataHandle(
45 net::URLRequest* request, 45 net::URLRequest* request,
46 scoped_ptr<BlobDataHandle> blob_data_handle); 46 scoped_ptr<BlobDataHandle> blob_data_handle);
47 47
(...skipping 13 matching lines...) Expand all
61 base::WeakPtr<BlobStorageContext> context_; 61 base::WeakPtr<BlobStorageContext> context_;
62 const scoped_refptr<fileapi::FileSystemContext> file_system_context_; 62 const scoped_refptr<fileapi::FileSystemContext> file_system_context_;
63 const scoped_refptr<base::MessageLoopProxy> file_loop_proxy_; 63 const scoped_refptr<base::MessageLoopProxy> file_loop_proxy_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(BlobProtocolHandler); 65 DISALLOW_COPY_AND_ASSIGN(BlobProtocolHandler);
66 }; 66 };
67 67
68 } // namespace webkit_blob 68 } // namespace webkit_blob
69 69
70 #endif // WEBKIT_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ 70 #endif // WEBKIT_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_url_request_job_unittest.cc ('k') | webkit/browser/blob/blob_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698