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

Side by Side Diff: net/url_request/url_request_file_job.h

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r198785) Created 7 years, 7 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 | « net/url_request/url_request_data_job.cc ('k') | net/url_request/url_request_file_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 NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 class FileStream; 27 class FileStream;
28 28
29 // A request job that handles reading file URLs 29 // A request job that handles reading file URLs
30 class NET_EXPORT URLRequestFileJob : public URLRequestJob { 30 class NET_EXPORT URLRequestFileJob : public URLRequestJob {
31 public: 31 public:
32 URLRequestFileJob(URLRequest* request, 32 URLRequestFileJob(URLRequest* request,
33 NetworkDelegate* network_delegate, 33 NetworkDelegate* network_delegate,
34 const base::FilePath& file_path); 34 const base::FilePath& file_path);
35 35
36 static URLRequest::ProtocolFactory Factory;
37
38 // URLRequestJob: 36 // URLRequestJob:
39 virtual void Start() OVERRIDE; 37 virtual void Start() OVERRIDE;
40 virtual void Kill() OVERRIDE; 38 virtual void Kill() OVERRIDE;
41 virtual bool ReadRawData(IOBuffer* buf, 39 virtual bool ReadRawData(IOBuffer* buf,
42 int buf_size, 40 int buf_size,
43 int* bytes_read) OVERRIDE; 41 int* bytes_read) OVERRIDE;
44 virtual bool IsRedirectResponse(GURL* location, 42 virtual bool IsRedirectResponse(GURL* location,
45 int* http_status_code) OVERRIDE; 43 int* http_status_code) OVERRIDE;
46 virtual Filter* SetupFilter() const OVERRIDE; 44 virtual Filter* SetupFilter() const OVERRIDE;
47 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 45 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int64 remaining_bytes_; 96 int64 remaining_bytes_;
99 97
100 base::WeakPtrFactory<URLRequestFileJob> weak_ptr_factory_; 98 base::WeakPtrFactory<URLRequestFileJob> weak_ptr_factory_;
101 99
102 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); 100 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob);
103 }; 101 };
104 102
105 } // namespace net 103 } // namespace net
106 104
107 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ 105 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_data_job.cc ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698