| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file defines FileStream, a basic interface for reading and writing files | 5 // This file defines FileStream, a basic interface for reading and writing files |
| 6 // synchronously or asynchronously with support for seeking to an offset. | 6 // synchronously or asynchronously with support for seeking to an offset. |
| 7 // Note that even when used asynchronously, only one operation is supported at | 7 // Note that even when used asynchronously, only one operation is supported at |
| 8 // a time. | 8 // a time. |
| 9 | 9 |
| 10 #ifndef NET_BASE_FILE_STREAM_H_ | 10 #ifndef NET_BASE_FILE_STREAM_H_ |
| 11 #define NET_BASE_FILE_STREAM_H_ | 11 #define NET_BASE_FILE_STREAM_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 base::PlatformFile file_; | 141 base::PlatformFile file_; |
| 142 int open_flags_; | 142 int open_flags_; |
| 143 bool auto_closed_; | 143 bool auto_closed_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(FileStream); | 145 DISALLOW_COPY_AND_ASSIGN(FileStream); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace net | 148 } // namespace net |
| 149 | 149 |
| 150 #endif // NET_BASE_FILE_STREAM_H_ | 150 #endif // NET_BASE_FILE_STREAM_H_ |
| OLD | NEW |