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_SOURCE_FILE_IMPL_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_FILE_IMPL_H_ |
12 #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_FILE_IMPL_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_FILE_IMPL_H_ |
13 | 13 |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 | 17 |
| 18 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/system_wrappers/include/file_wrapper.h" | 19 #include "webrtc/system_wrappers/include/file_wrapper.h" |
19 | 20 |
20 namespace webrtc { | 21 namespace webrtc { |
21 | 22 |
22 class RWLockWrapper; | 23 class RWLockWrapper; |
23 | 24 |
24 class FileWrapperImpl : public FileWrapper { | 25 class FileWrapperImpl : public FileWrapper { |
25 public: | 26 public: |
26 FileWrapperImpl(); | 27 FileWrapperImpl(); |
27 ~FileWrapperImpl() override; | 28 ~FileWrapperImpl() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool looping_; | 62 bool looping_; |
62 bool read_only_; | 63 bool read_only_; |
63 size_t max_size_in_bytes_; // -1 indicates file size limitation is off | 64 size_t max_size_in_bytes_; // -1 indicates file size limitation is off |
64 size_t size_in_bytes_; | 65 size_t size_in_bytes_; |
65 char file_name_utf8_[kMaxFileNameSize]; | 66 char file_name_utf8_[kMaxFileNameSize]; |
66 }; | 67 }; |
67 | 68 |
68 } // namespace webrtc | 69 } // namespace webrtc |
69 | 70 |
70 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_FILE_IMPL_H_ | 71 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_FILE_IMPL_H_ |
OLD | NEW |