OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void StartAsync(); | 54 void StartAsync(); |
55 void DidGetMetadata(const base::PlatformFileInfo& file_info, | 55 void DidGetMetadata(const base::PlatformFileInfo& file_info, |
56 const FilePath& platform_path); | 56 const FilePath& platform_path); |
57 void DidOpen(base::PlatformFileError error_code, | 57 void DidOpen(base::PlatformFileError error_code, |
58 base::PassPlatformFile file, bool created); | 58 base::PassPlatformFile file, bool created); |
59 void DidRead(int result); | 59 void DidRead(int result); |
60 void NotifyFailed(int rv); | 60 void NotifyFailed(int rv); |
61 | 61 |
62 FileSystemContext* file_system_context_; | 62 FileSystemContext* file_system_context_; |
63 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; | 63 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; |
64 ScopedRunnableMethodFactory<FileSystemURLRequestJob> method_factory_; | |
65 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; | 64 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_; |
66 scoped_ptr<net::FileStream> stream_; | 65 scoped_ptr<net::FileStream> stream_; |
67 bool is_directory_; | 66 bool is_directory_; |
68 scoped_ptr<net::HttpResponseInfo> response_info_; | 67 scoped_ptr<net::HttpResponseInfo> response_info_; |
69 int64 remaining_bytes_; | 68 int64 remaining_bytes_; |
70 net::HttpByteRange byte_range_; | 69 net::HttpByteRange byte_range_; |
71 | 70 |
72 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); | 71 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); |
73 }; | 72 }; |
74 | 73 |
75 } // namespace fileapi | 74 } // namespace fileapi |
76 | 75 |
77 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ | 76 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ |
OLD | NEW |