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

Side by Side Diff: net/url_request/url_request_file_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, 4 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_file_dir_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
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "net/base/file_stream.h" 12 #include "net/base/file_stream.h"
13 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
14 #include "net/http/http_byte_range.h" 14 #include "net/http/http_byte_range.h"
15 #include "net/url_request/url_request.h" 15 #include "net/url_request/url_request.h"
16 #include "net/url_request/url_request_job.h" 16 #include "net/url_request/url_request_job.h"
17 17
18 namespace file_util { 18 namespace file_util {
19 struct FileInfo; 19 struct FileInfo;
20 } 20 }
21 21
22 namespace net { 22 namespace net {
23 23
24 // A request job that handles reading file URLs 24 // A request job that handles reading file URLs
25 class NET_EXPORT URLRequestFileJob : public URLRequestJob { 25 class NET_EXPORT URLRequestFileJob : public URLRequestJob {
26 public: 26 public:
27 URLRequestFileJob(URLRequest* request, 27 URLRequestFileJob(URLRequest* request,
28 const FilePath& file_path, 28 NetworkDelegate* network_delegate,
29 NetworkDelegate* network_delegate); 29 const FilePath& file_path);
30 30
31 static URLRequest::ProtocolFactory Factory; 31 static URLRequest::ProtocolFactory Factory;
32 32
33 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
34 static bool AccessDisabled(const FilePath& file_path); 34 static bool AccessDisabled(const FilePath& file_path);
35 #endif 35 #endif
36 36
37 // URLRequestJob: 37 // URLRequestJob:
38 virtual void Start() OVERRIDE; 38 virtual void Start() OVERRIDE;
39 virtual void Kill() OVERRIDE; 39 virtual void Kill() OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 class AsyncResolver; 71 class AsyncResolver;
72 friend class AsyncResolver; 72 friend class AsyncResolver;
73 scoped_refptr<AsyncResolver> async_resolver_; 73 scoped_refptr<AsyncResolver> async_resolver_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); 75 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob);
76 }; 76 };
77 77
78 } // namespace net 78 } // namespace net
79 79
80 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ 80 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_dir_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