Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/base/unixfilesystem.h

Issue 2699143002: Delete unused Filesystem methods GetAppDataFolder and GetDiskFreeSpace. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/fileutils_unittest.cc ('k') | webrtc/base/unixfilesystem.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // automatically deleted when the program exists) 87 // automatically deleted when the program exists)
88 bool GetTemporaryFolder(Pathname& path, 88 bool GetTemporaryFolder(Pathname& path,
89 bool create, 89 bool create,
90 const std::string* append) override; 90 const std::string* append) override;
91 91
92 bool GetFileSize(const Pathname& path, size_t* size) override; 92 bool GetFileSize(const Pathname& path, size_t* size) override;
93 bool GetFileTime(const Pathname& path, 93 bool GetFileTime(const Pathname& path,
94 FileTimeType which, 94 FileTimeType which,
95 time_t* time) override; 95 time_t* time) override;
96 96
97 bool GetAppDataFolder(Pathname* path, bool per_user) override;
98
99 // Get a temporary folder that is unique to the current user and application. 97 // Get a temporary folder that is unique to the current user and application.
100 bool GetAppTempFolder(Pathname* path) override; 98 bool GetAppTempFolder(Pathname* path) override;
101 99
102 bool GetDiskFreeSpace(const Pathname& path, int64_t* freebytes) override;
103
104 private: 100 private:
105 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) 101 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC)
106 static char* provided_app_data_folder_; 102 static char* provided_app_data_folder_;
107 static char* provided_app_temp_folder_; 103 static char* provided_app_temp_folder_;
108 #else 104 #else
109 static char* app_temp_path_; 105 static char* app_temp_path_;
110 #endif 106 #endif
111 107
112 static char* CopyString(const std::string& str); 108 static char* CopyString(const std::string& str);
113 }; 109 };
114 110
115 } // namespace rtc 111 } // namespace rtc
116 112
117 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ 113 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_
OLDNEW
« no previous file with comments | « webrtc/base/fileutils_unittest.cc ('k') | webrtc/base/unixfilesystem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698