OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 static URLRequest::ProtocolFactory Factory; | 36 static URLRequest::ProtocolFactory Factory; |
37 | 37 |
38 protected: | 38 protected: |
39 virtual ~URLRequestFileJob(); | 39 virtual ~URLRequestFileJob(); |
40 | 40 |
41 // The OS-specific full path name of the file | 41 // The OS-specific full path name of the file |
42 FilePath file_path_; | 42 FilePath file_path_; |
43 | 43 |
44 private: | 44 private: |
45 void DidResolve(bool exists, const file_util::FileInfo& file_info); | 45 void DidResolve(bool exists, const base::PlatformFileInfo& file_info); |
46 void DidRead(int result); | 46 void DidRead(int result); |
47 | 47 |
48 net::CompletionCallbackImpl<URLRequestFileJob> io_callback_; | 48 net::CompletionCallbackImpl<URLRequestFileJob> io_callback_; |
49 net::FileStream stream_; | 49 net::FileStream stream_; |
50 bool is_directory_; | 50 bool is_directory_; |
51 | 51 |
52 net::HttpByteRange byte_range_; | 52 net::HttpByteRange byte_range_; |
53 int64 remaining_bytes_; | 53 int64 remaining_bytes_; |
54 | 54 |
55 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
56 class AsyncResolver; | 56 class AsyncResolver; |
57 friend class AsyncResolver; | 57 friend class AsyncResolver; |
58 scoped_refptr<AsyncResolver> async_resolver_; | 58 scoped_refptr<AsyncResolver> async_resolver_; |
59 #endif | 59 #endif |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); | 61 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); |
62 }; | 62 }; |
63 | 63 |
64 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ | 64 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ |
OLD | NEW |