OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_SYSTEM_WRAPPERS_INCLUDE_FILE_WRAPPER_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_FILE_WRAPPER_H_ |
12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_FILE_WRAPPER_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_FILE_WRAPPER_H_ |
13 | 13 |
14 #include <stddef.h> | 14 #include <stddef.h> |
15 #include <stdio.h> | 15 #include <stdio.h> |
16 | 16 |
| 17 #include "webrtc/base/criticalsection.h" |
17 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
18 #include "webrtc/rtc_base/criticalsection.h" | |
19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
20 | 20 |
21 // Implementation of an InStream and OutStream that can read (exclusive) or | 21 // Implementation of an InStream and OutStream that can read (exclusive) or |
22 // write from/to a file. | 22 // write from/to a file. |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 // TODO(tommi): Remove the base classes, rename to rtc::File and move to base. | 26 // TODO(tommi): Remove the base classes, rename to rtc::File and move to base. |
27 class FileWrapper : public InStream, public OutStream { | 27 class FileWrapper : public InStream, public OutStream { |
28 public: | 28 public: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 size_t max_size_in_bytes_ = 0; | 79 size_t max_size_in_bytes_ = 0; |
80 | 80 |
81 // Copying is not supported. | 81 // Copying is not supported. |
82 FileWrapper(const FileWrapper&) = delete; | 82 FileWrapper(const FileWrapper&) = delete; |
83 FileWrapper& operator=(const FileWrapper&) = delete; | 83 FileWrapper& operator=(const FileWrapper&) = delete; |
84 }; | 84 }; |
85 | 85 |
86 } // namespace webrtc | 86 } // namespace webrtc |
87 | 87 |
88 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_FILE_WRAPPER_H_ | 88 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_FILE_WRAPPER_H_ |
OLD | NEW |