OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DIR_JOB_H__ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FILE_DIR_JOB_H__ |
6 #define NET_URL_REQUEST_URL_REQUEST_FILE_DIR_JOB_H__ | 6 #define NET_URL_REQUEST_URL_REQUEST_FILE_DIR_JOB_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Indicates whether we have written the HTML header | 56 // Indicates whether we have written the HTML header |
57 bool wrote_header_; | 57 bool wrote_header_; |
58 | 58 |
59 // To simulate Async IO, we hold onto the Reader's buffer while | 59 // To simulate Async IO, we hold onto the Reader's buffer while |
60 // we wait for IO to complete. When done, we fill the buffer | 60 // we wait for IO to complete. When done, we fill the buffer |
61 // manually. | 61 // manually. |
62 bool read_pending_; | 62 bool read_pending_; |
63 scoped_refptr<net::IOBuffer> read_buffer_; | 63 scoped_refptr<net::IOBuffer> read_buffer_; |
64 int read_buffer_length_; | 64 int read_buffer_length_; |
65 | 65 |
66 DISALLOW_EVIL_CONSTRUCTORS(URLRequestFileDirJob); | 66 DISALLOW_COPY_AND_ASSIGN(URLRequestFileDirJob); |
67 }; | 67 }; |
68 | 68 |
69 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_DIR_JOB_H__ | 69 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_DIR_JOB_H__ |
OLD | NEW |