OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_RTC_BASE_FILE_H_ | 11 #ifndef WEBRTC_RTC_BASE_FILE_H_ |
12 #define WEBRTC_RTC_BASE_FILE_H_ | 12 #define WEBRTC_RTC_BASE_FILE_H_ |
13 | 13 |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include <string> | 16 #include <string> |
17 | 17 |
18 #include "webrtc/rtc_base/constructormagic.h" | 18 #include "webrtc/base/constructormagic.h" |
19 #include "webrtc/rtc_base/pathutils.h" | 19 #include "webrtc/base/pathutils.h" |
20 #include "webrtc/rtc_base/platform_file.h" | 20 #include "webrtc/base/platform_file.h" |
21 | 21 |
22 namespace rtc { | 22 namespace rtc { |
23 | 23 |
24 // This class wraps the platform specific APIs for simple file interactions. | 24 // This class wraps the platform specific APIs for simple file interactions. |
25 // | 25 // |
26 // The various read and write methods are best effort, i.e. if an underlying | 26 // The various read and write methods are best effort, i.e. if an underlying |
27 // call does not manage to read/write all the data more calls will be performed, | 27 // call does not manage to read/write all the data more calls will be performed, |
28 // until an error is detected or all data is read/written. | 28 // until an error is detected or all data is read/written. |
29 class File { | 29 class File { |
30 public: | 30 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 bool IsOpen(); | 73 bool IsOpen(); |
74 | 74 |
75 private: | 75 private: |
76 PlatformFile file_; | 76 PlatformFile file_; |
77 RTC_DISALLOW_COPY_AND_ASSIGN(File); | 77 RTC_DISALLOW_COPY_AND_ASSIGN(File); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace rtc | 80 } // namespace rtc |
81 | 81 |
82 #endif // WEBRTC_RTC_BASE_FILE_H_ | 82 #endif // WEBRTC_RTC_BASE_FILE_H_ |
OLD | NEW |