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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 time_t* time) override; | 100 time_t* time) override; |
101 | 101 |
102 // Returns the path to the running application. | 102 // Returns the path to the running application. |
103 bool GetAppPathname(Pathname* path) override; | 103 bool GetAppPathname(Pathname* path) override; |
104 | 104 |
105 bool GetAppDataFolder(Pathname* path, bool per_user) override; | 105 bool GetAppDataFolder(Pathname* path, bool per_user) override; |
106 | 106 |
107 // Get a temporary folder that is unique to the current user and application. | 107 // Get a temporary folder that is unique to the current user and application. |
108 bool GetAppTempFolder(Pathname* path) override; | 108 bool GetAppTempFolder(Pathname* path) override; |
109 | 109 |
110 bool GetDiskFreeSpace(const Pathname& path, int64* freebytes) override; | 110 bool GetDiskFreeSpace(const Pathname& path, int64_t* freebytes) override; |
111 | 111 |
112 // Returns the absolute path of the current directory. | 112 // Returns the absolute path of the current directory. |
113 Pathname GetCurrentDirectory() override; | 113 Pathname GetCurrentDirectory() override; |
114 | 114 |
115 private: | 115 private: |
116 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) | 116 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
117 static char* provided_app_data_folder_; | 117 static char* provided_app_data_folder_; |
118 static char* provided_app_temp_folder_; | 118 static char* provided_app_temp_folder_; |
119 #else | 119 #else |
120 static char* app_temp_path_; | 120 static char* app_temp_path_; |
121 #endif | 121 #endif |
122 | 122 |
123 static char* CopyString(const std::string& str); | 123 static char* CopyString(const std::string& str); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace rtc | 126 } // namespace rtc |
127 | 127 |
128 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ | 128 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ |
OLD | NEW |