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

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

Issue 113931: Remove code path that passes a file handle to the renderer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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.h ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 10 matching lines...) Expand all
21 URLRequestFileJob(URLRequest* request, const FilePath& file_path); 21 URLRequestFileJob(URLRequest* request, const FilePath& file_path);
22 virtual ~URLRequestFileJob(); 22 virtual ~URLRequestFileJob();
23 23
24 virtual void Start(); 24 virtual void Start();
25 virtual void Kill(); 25 virtual void Kill();
26 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); 26 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read);
27 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); 27 virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
28 virtual bool GetContentEncodings( 28 virtual bool GetContentEncodings(
29 std::vector<Filter::FilterType>* encoding_type); 29 std::vector<Filter::FilterType>* encoding_type);
30 virtual bool GetMimeType(std::string* mime_type) const; 30 virtual bool GetMimeType(std::string* mime_type) const;
31 virtual void GetResponseInfo(net::HttpResponseInfo* info);
32 virtual void SetExtraRequestHeaders(const std::string& headers); 31 virtual void SetExtraRequestHeaders(const std::string& headers);
33 32
34 static URLRequest::ProtocolFactory Factory; 33 static URLRequest::ProtocolFactory Factory;
35 34
36 protected: 35 protected:
37 // The OS-specific full path name of the file 36 // The OS-specific full path name of the file
38 FilePath file_path_; 37 FilePath file_path_;
39 38
40 private: 39 private:
41 void DidResolve(bool exists, const file_util::FileInfo& file_info); 40 void DidResolve(bool exists, const file_util::FileInfo& file_info);
42 void DidRead(int result); 41 void DidRead(int result);
43 42
44 net::CompletionCallbackImpl<URLRequestFileJob> io_callback_; 43 net::CompletionCallbackImpl<URLRequestFileJob> io_callback_;
45 net::FileStream stream_; 44 net::FileStream stream_;
46 bool is_directory_; 45 bool is_directory_;
47 46
48 net::HttpByteRange byte_range_; 47 net::HttpByteRange byte_range_;
49 int64 remaining_bytes_; 48 int64 remaining_bytes_;
50 49
51 #if defined(OS_WIN) 50 #if defined(OS_WIN)
52 class AsyncResolver; 51 class AsyncResolver;
53 friend class AsyncResolver; 52 friend class AsyncResolver;
54 scoped_refptr<AsyncResolver> async_resolver_; 53 scoped_refptr<AsyncResolver> async_resolver_;
55 #endif 54 #endif
56 55
57 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); 56 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob);
58 }; 57 };
59 58
60 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ 59 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698