| 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 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 std::string TempFilename(const Pathname& dir, | 65 std::string TempFilename(const Pathname& dir, |
| 66 const std::string& prefix) override; | 66 const std::string& prefix) override; |
| 67 | 67 |
| 68 // A folder appropriate for storing temporary files (Contents are | 68 // A folder appropriate for storing temporary files (Contents are |
| 69 // automatically deleted when the program exists) | 69 // automatically deleted when the program exists) |
| 70 bool GetTemporaryFolder(Pathname& path, | 70 bool GetTemporaryFolder(Pathname& path, |
| 71 bool create, | 71 bool create, |
| 72 const std::string* append) override; | 72 const std::string* append) override; |
| 73 | 73 |
| 74 bool GetFileSize(const Pathname& path, size_t* size) override; | 74 bool GetFileSize(const Pathname& path, size_t* size) override; |
| 75 bool GetFileTime(const Pathname& path, | |
| 76 FileTimeType which, | |
| 77 time_t* time) override; | |
| 78 | 75 |
| 79 private: | 76 private: |
| 80 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) | 77 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) |
| 81 static char* provided_app_data_folder_; | 78 static char* provided_app_data_folder_; |
| 82 static char* provided_app_temp_folder_; | 79 static char* provided_app_temp_folder_; |
| 83 #else | 80 #else |
| 84 static char* app_temp_path_; | 81 static char* app_temp_path_; |
| 85 #endif | 82 #endif |
| 86 | 83 |
| 87 static char* CopyString(const std::string& str); | 84 static char* CopyString(const std::string& str); |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace rtc | 87 } // namespace rtc |
| 91 | 88 |
| 92 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ | 89 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ |
| OLD | NEW |