OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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_FILEUTILS_H_ | 11 #ifndef WEBRTC_RTC_BASE_FILEUTILS_H_ |
12 #define WEBRTC_RTC_BASE_FILEUTILS_H_ | 12 #define WEBRTC_RTC_BASE_FILEUTILS_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #if !defined(WEBRTC_WIN) | 16 #if !defined(WEBRTC_WIN) |
17 #include <dirent.h> | 17 #include <dirent.h> |
18 #include <stdio.h> | 18 #include <stdio.h> |
19 #include <sys/stat.h> | 19 #include <sys/stat.h> |
20 #include <sys/types.h> | 20 #include <sys/types.h> |
21 #include <unistd.h> | 21 #include <unistd.h> |
22 #endif | 22 #endif |
23 | 23 |
24 #include "webrtc/rtc_base/checks.h" | 24 #include "webrtc/base/checks.h" |
25 #include "webrtc/rtc_base/constructormagic.h" | 25 #include "webrtc/base/constructormagic.h" |
26 #include "webrtc/rtc_base/platform_file.h" | 26 #include "webrtc/base/platform_file.h" |
27 | 27 |
28 namespace rtc { | 28 namespace rtc { |
29 | 29 |
30 class FileStream; | 30 class FileStream; |
31 class Pathname; | 31 class Pathname; |
32 | 32 |
33 ////////////////////////// | 33 ////////////////////////// |
34 // Directory Iterator // | 34 // Directory Iterator // |
35 ////////////////////////// | 35 ////////////////////////// |
36 | 36 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 private: | 173 private: |
174 static FilesystemInterface* default_filesystem_; | 174 static FilesystemInterface* default_filesystem_; |
175 | 175 |
176 static FilesystemInterface *EnsureDefaultFilesystem(); | 176 static FilesystemInterface *EnsureDefaultFilesystem(); |
177 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Filesystem); | 177 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Filesystem); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace rtc | 180 } // namespace rtc |
181 | 181 |
182 #endif // WEBRTC_RTC_BASE_FILEUTILS_H_ | 182 #endif // WEBRTC_RTC_BASE_FILEUTILS_H_ |
OLD | NEW |