OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #include "webrtc/system_wrappers/source/file_impl.h" | 11 #include "webrtc/system_wrappers/source/file_impl.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #ifdef _WIN32 | 15 #ifdef _WIN32 |
16 #include <Windows.h> | 16 #include <Windows.h> |
17 #else | 17 #else |
18 #include <stdarg.h> | 18 #include <stdarg.h> |
19 #include <string.h> | 19 #include <string.h> |
20 #endif | 20 #endif |
21 | 21 |
22 #include "webrtc/base/checks.h" | 22 #include "webrtc/base/checks.h" |
23 #include "webrtc/system_wrappers/interface/rw_lock_wrapper.h" | 23 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 FileWrapper* FileWrapper::Create() { | 27 FileWrapper* FileWrapper::Create() { |
28 return new FileWrapperImpl(); | 28 return new FileWrapperImpl(); |
29 } | 29 } |
30 | 30 |
31 FileWrapperImpl::FileWrapperImpl() | 31 FileWrapperImpl::FileWrapperImpl() |
32 : rw_lock_(RWLockWrapper::CreateRWLock()), | 32 : rw_lock_(RWLockWrapper::CreateRWLock()), |
33 id_(NULL), | 33 id_(NULL), |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 269 } |
270 return -1; | 270 return -1; |
271 } | 271 } |
272 | 272 |
273 int FileWrapper::Rewind() { | 273 int FileWrapper::Rewind() { |
274 RTC_DCHECK(false); | 274 RTC_DCHECK(false); |
275 return -1; | 275 return -1; |
276 } | 276 } |
277 | 277 |
278 } // namespace webrtc | 278 } // namespace webrtc |
OLD | NEW |