OLD | NEW |
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_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
14 #include "net/http/http_byte_range.h" | 14 #include "net/http/http_byte_range.h" |
15 #include "net/url_request/url_request_job.h" | 15 #include "net/url_request/url_request_job.h" |
16 #include "webkit/browser/fileapi/file_system_url.h" | 16 #include "webkit/browser/fileapi/file_system_url.h" |
17 #include "webkit/storage/webkit_storage_export.h" | 17 #include "webkit/browser/webkit_storage_browser_export.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class FilePath; | 22 class FilePath; |
23 } | 23 } |
24 | 24 |
25 namespace webkit_blob { | 25 namespace webkit_blob { |
26 class FileStreamReader; | 26 class FileStreamReader; |
27 } | 27 } |
28 | 28 |
29 namespace fileapi { | 29 namespace fileapi { |
30 class FileSystemContext; | 30 class FileSystemContext; |
31 | 31 |
32 // A request job that handles reading filesystem: URLs | 32 // A request job that handles reading filesystem: URLs |
33 class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob | 33 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE FileSystemURLRequestJob |
34 : public net::URLRequestJob { | 34 : public net::URLRequestJob { |
35 public: | 35 public: |
36 FileSystemURLRequestJob( | 36 FileSystemURLRequestJob( |
37 net::URLRequest* request, | 37 net::URLRequest* request, |
38 net::NetworkDelegate* network_delegate, | 38 net::NetworkDelegate* network_delegate, |
39 FileSystemContext* file_system_context); | 39 FileSystemContext* file_system_context); |
40 | 40 |
41 // URLRequestJob methods: | 41 // URLRequestJob methods: |
42 virtual void Start() OVERRIDE; | 42 virtual void Start() OVERRIDE; |
43 virtual void Kill() OVERRIDE; | 43 virtual void Kill() OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 scoped_ptr<net::HttpResponseInfo> response_info_; | 75 scoped_ptr<net::HttpResponseInfo> response_info_; |
76 int64 remaining_bytes_; | 76 int64 remaining_bytes_; |
77 net::HttpByteRange byte_range_; | 77 net::HttpByteRange byte_range_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); | 79 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace fileapi | 82 } // namespace fileapi |
83 | 83 |
84 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 84 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
OLD | NEW |