| 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" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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 FILEAPI_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 FileSystemContext* file_system_context); | 36 FileSystemContext* file_system_context); |
| 36 | 37 |
| 37 // URLRequestJob methods: | 38 // URLRequestJob methods: |
| 38 virtual void Start() OVERRIDE; | 39 virtual void Start() OVERRIDE; |
| 39 virtual void Kill() OVERRIDE; | 40 virtual void Kill() OVERRIDE; |
| 40 virtual bool ReadRawData(net::IOBuffer* buf, | 41 virtual bool ReadRawData(net::IOBuffer* buf, |
| 41 int buf_size, | 42 int buf_size, |
| 42 int* bytes_read) OVERRIDE; | 43 int* bytes_read) OVERRIDE; |
| 43 virtual bool IsRedirectResponse(GURL* location, | 44 virtual bool IsRedirectResponse(GURL* location, |
| 44 int* http_status_code) OVERRIDE; | 45 int* http_status_code) OVERRIDE; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 scoped_ptr<net::HttpResponseInfo> response_info_; | 72 scoped_ptr<net::HttpResponseInfo> response_info_; |
| 72 int64 remaining_bytes_; | 73 int64 remaining_bytes_; |
| 73 net::HttpByteRange byte_range_; | 74 net::HttpByteRange byte_range_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); | 76 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace fileapi | 79 } // namespace fileapi |
| 79 | 80 |
| 80 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 81 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
| OLD | NEW |