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

Side by Side Diff: webkit/blob/blob_url_request_job.h

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/view_appcache_internals_job.cc ('k') | webkit/blob/blob_url_request_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BLOB_BLOB_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
6 #define WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ 6 #define WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 namespace webkit_blob { 26 namespace webkit_blob {
27 27
28 class LocalFileStreamReader; 28 class LocalFileStreamReader;
29 29
30 // A request job that handles reading blob URLs. 30 // A request job that handles reading blob URLs.
31 class BLOB_EXPORT BlobURLRequestJob : public net::URLRequestJob { 31 class BLOB_EXPORT BlobURLRequestJob : public net::URLRequestJob {
32 public: 32 public:
33 BlobURLRequestJob(net::URLRequest* request, 33 BlobURLRequestJob(net::URLRequest* request,
34 net::NetworkDelegate* network_delegate,
34 BlobData* blob_data, 35 BlobData* blob_data,
35 base::MessageLoopProxy* resolving_message_loop_proxy); 36 base::MessageLoopProxy* resolving_message_loop_proxy);
36 37
37 // net::URLRequestJob methods. 38 // net::URLRequestJob methods.
38 virtual void Start() OVERRIDE; 39 virtual void Start() OVERRIDE;
39 virtual void Kill() OVERRIDE; 40 virtual void Kill() OVERRIDE;
40 virtual bool ReadRawData(net::IOBuffer* buf, 41 virtual bool ReadRawData(net::IOBuffer* buf,
41 int buf_size, 42 int buf_size,
42 int* bytes_read) OVERRIDE; 43 int* bytes_read) OVERRIDE;
43 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 44 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool byte_range_set_; 98 bool byte_range_set_;
98 net::HttpByteRange byte_range_; 99 net::HttpByteRange byte_range_;
99 scoped_ptr<net::HttpResponseInfo> response_info_; 100 scoped_ptr<net::HttpResponseInfo> response_info_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); 102 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob);
102 }; 103 };
103 104
104 } // namespace webkit_blob 105 } // namespace webkit_blob
105 106
106 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ 107 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/appcache/view_appcache_internals_job.cc ('k') | webkit/blob/blob_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698