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 74 matching lines...) Loading... |
85 bool SetBasename(const std::string& basename); | 85 bool SetBasename(const std::string& basename); |
86 | 86 |
87 std::string extension() const; | 87 std::string extension() const; |
88 // SetExtension will prefix a period, if needed. | 88 // SetExtension will prefix a period, if needed. |
89 bool SetExtension(const std::string& extension); | 89 bool SetExtension(const std::string& extension); |
90 | 90 |
91 std::string filename() const; | 91 std::string filename() const; |
92 bool SetFilename(const std::string& filename); | 92 bool SetFilename(const std::string& filename); |
93 | 93 |
94 #if defined(WEBRTC_WIN) | 94 #if defined(WEBRTC_WIN) |
95 bool GetDrive(char *drive, uint32 bytes) const; | 95 bool GetDrive(char* drive, uint32_t bytes) const; |
96 static bool GetDrive(char *drive, uint32 bytes,const std::string& pathname); | 96 static bool GetDrive(char* drive, |
| 97 uint32_t bytes, |
| 98 const std::string& pathname); |
97 #endif | 99 #endif |
98 | 100 |
99 private: | 101 private: |
100 std::string folder_, basename_, extension_; | 102 std::string folder_, basename_, extension_; |
101 char folder_delimiter_; | 103 char folder_delimiter_; |
102 }; | 104 }; |
103 | 105 |
104 /////////////////////////////////////////////////////////////////////////////// | 106 /////////////////////////////////////////////////////////////////////////////// |
105 // Global Helpers (deprecated) | 107 // Global Helpers (deprecated) |
106 /////////////////////////////////////////////////////////////////////////////// | 108 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 47 matching lines...) Loading... |
154 return false; | 156 return false; |
155 } | 157 } |
156 return Filesystem::DeleteFolderContents(path); | 158 return Filesystem::DeleteFolderContents(path); |
157 } | 159 } |
158 | 160 |
159 /////////////////////////////////////////////////////////////////////////////// | 161 /////////////////////////////////////////////////////////////////////////////// |
160 | 162 |
161 } // namespace rtc | 163 } // namespace rtc |
162 | 164 |
163 #endif // WEBRTC_BASE_PATHUTILS_H__ | 165 #endif // WEBRTC_BASE_PATHUTILS_H__ |
OLD | NEW |