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

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

Issue 5607004: net: Remove typedef net::URLRequestJob URLRequestJob; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 2 Created 10 years 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.h ('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) 20010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 20010 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/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_callback_factory.h" 10 #include "base/scoped_callback_factory.h"
(...skipping 13 matching lines...) Expand all
24 namespace webkit_blob { 24 namespace webkit_blob {
25 25
26 // A request job that handles reading blob URLs. 26 // A request job that handles reading blob URLs.
27 class BlobURLRequestJob : public net::URLRequestJob { 27 class BlobURLRequestJob : public net::URLRequestJob {
28 public: 28 public:
29 BlobURLRequestJob(net::URLRequest* request, 29 BlobURLRequestJob(net::URLRequest* request,
30 BlobData* blob_data, 30 BlobData* blob_data,
31 base::MessageLoopProxy* resolving_message_loop_proxy); 31 base::MessageLoopProxy* resolving_message_loop_proxy);
32 virtual ~BlobURLRequestJob(); 32 virtual ~BlobURLRequestJob();
33 33
34 // URLRequestJob methods. 34 // net::URLRequestJob methods.
35 virtual void Start(); 35 virtual void Start();
36 virtual void Kill(); 36 virtual void Kill();
37 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); 37 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read);
38 virtual bool GetMimeType(std::string* mime_type) const; 38 virtual bool GetMimeType(std::string* mime_type) const;
39 virtual void GetResponseInfo(net::HttpResponseInfo* info); 39 virtual void GetResponseInfo(net::HttpResponseInfo* info);
40 virtual int GetResponseCode() const; 40 virtual int GetResponseCode() const;
41 virtual void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers); 41 virtual void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers);
42 42
43 private: 43 private:
44 void ResolveFile(const FilePath& file_path); 44 void ResolveFile(const FilePath& file_path);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 net::HttpByteRange byte_range_; 80 net::HttpByteRange byte_range_;
81 scoped_ptr<net::HttpResponseInfo> response_info_; 81 scoped_ptr<net::HttpResponseInfo> response_info_;
82 ScopedRunnableMethodFactory<BlobURLRequestJob> method_factory_; 82 ScopedRunnableMethodFactory<BlobURLRequestJob> method_factory_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); 84 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob);
85 }; 85 };
86 86
87 } // namespace webkit_blob 87 } // namespace webkit_blob
88 88
89 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ 89 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/appcache/view_appcache_internals_job.h ('k') | webkit/blob/blob_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698