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

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

Issue 2930023002: Delete unused method FilesystemInterface::DeleteEmptyFolder. (Closed)
Patch Set: Created 3 years, 6 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.h ('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 20 matching lines...) Expand all
31 // TODO(fischman): add an Android version that uses JNI and drop the 31 // TODO(fischman): add an Android version that uses JNI and drop the
32 // SetApp*Folder() APIs once external users stop using them. 32 // SetApp*Folder() APIs once external users stop using them.
33 static void SetAppDataFolder(const std::string& folder); 33 static void SetAppDataFolder(const std::string& folder);
34 static void SetAppTempFolder(const std::string& folder); 34 static void SetAppTempFolder(const std::string& folder);
35 #endif 35 #endif
36 36
37 // This will attempt to delete the file located at filename. 37 // This will attempt to delete the file located at filename.
38 // It will fail with VERIY if you pass it a non-existant file, or a directory. 38 // It will fail with VERIY if you pass it a non-existant file, or a directory.
39 bool DeleteFile(const Pathname& filename) override; 39 bool DeleteFile(const Pathname& filename) override;
40 40
41 // This will attempt to delete the folder located at 'folder'
42 // It DCHECKs and returns false if you pass it a non-existant folder or a
43 // plain file.
44 bool DeleteEmptyFolder(const Pathname& folder) override;
45
46 // Creates a directory. This will call itself recursively to create /foo/bar 41 // Creates a directory. This will call itself recursively to create /foo/bar
47 // even if /foo does not exist. All created directories are created with the 42 // even if /foo does not exist. All created directories are created with the
48 // given mode. 43 // given mode.
49 // Returns TRUE if function succeeds 44 // Returns TRUE if function succeeds
50 virtual bool CreateFolder(const Pathname &pathname, mode_t mode); 45 virtual bool CreateFolder(const Pathname &pathname, mode_t mode);
51 46
52 // As above, with mode = 0755. 47 // As above, with mode = 0755.
53 bool CreateFolder(const Pathname& pathname) override; 48 bool CreateFolder(const Pathname& pathname) override;
54 49
55 // This moves a file from old_path to new_path, where "file" can be a plain 50 // This moves a file from old_path to new_path, where "file" can be a plain
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #else 83 #else
89 static char* app_temp_path_; 84 static char* app_temp_path_;
90 #endif 85 #endif
91 86
92 static char* CopyString(const std::string& str); 87 static char* CopyString(const std::string& str);
93 }; 88 };
94 89
95 } // namespace rtc 90 } // namespace rtc
96 91
97 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ 92 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_
OLDNEW
« no previous file with comments | « webrtc/base/fileutils.h ('k') | webrtc/base/unixfilesystem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698