| 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_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 6 #define WEBKIT_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/fileapi/file_system_url.h" | 16 #include "webkit/fileapi/file_system_url.h" |
| 17 #include "webkit/fileapi/fileapi_export.h" | 17 #include "webkit/storage/webkit_storage_export.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 class FilePath; | 20 class FilePath; |
| 21 | 21 |
| 22 namespace webkit_blob { | 22 namespace webkit_blob { |
| 23 class FileStreamReader; | 23 class FileStreamReader; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace fileapi { | 26 namespace fileapi { |
| 27 class FileSystemContext; | 27 class FileSystemContext; |
| 28 | 28 |
| 29 // A request job that handles reading filesystem: URLs | 29 // A request job that handles reading filesystem: URLs |
| 30 class FILEAPI_EXPORT_PRIVATE FileSystemURLRequestJob | 30 class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemURLRequestJob |
| 31 : public net::URLRequestJob { | 31 : public net::URLRequestJob { |
| 32 public: | 32 public: |
| 33 FileSystemURLRequestJob( | 33 FileSystemURLRequestJob( |
| 34 net::URLRequest* request, | 34 net::URLRequest* request, |
| 35 net::NetworkDelegate* network_delegate, | 35 net::NetworkDelegate* network_delegate, |
| 36 FileSystemContext* file_system_context); | 36 FileSystemContext* file_system_context); |
| 37 | 37 |
| 38 // URLRequestJob methods: | 38 // URLRequestJob methods: |
| 39 virtual void Start() OVERRIDE; | 39 virtual void Start() OVERRIDE; |
| 40 virtual void Kill() OVERRIDE; | 40 virtual void Kill() OVERRIDE; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 scoped_ptr<net::HttpResponseInfo> response_info_; | 72 scoped_ptr<net::HttpResponseInfo> response_info_; |
| 73 int64 remaining_bytes_; | 73 int64 remaining_bytes_; |
| 74 net::HttpByteRange byte_range_; | 74 net::HttpByteRange byte_range_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); | 76 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace fileapi | 79 } // namespace fileapi |
| 80 | 80 |
| 81 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 81 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
| OLD | NEW |