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

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

Issue 2887093002: Delete FilesystemInterface::DeleteFolderAndContents and related methods. (Closed)
Patch Set: Created 3 years, 7 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/unixfilesystem.cc ('k') | webrtc/base/win32filesystem.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Returns true if a pathname is a directory 44 // Returns true if a pathname is a directory
45 virtual bool IsFolder(const Pathname& pathname); 45 virtual bool IsFolder(const Pathname& pathname);
46 46
47 // Returns true if a file exists at path 47 // Returns true if a file exists at path
48 virtual bool IsFile(const Pathname &path); 48 virtual bool IsFile(const Pathname &path);
49 49
50 // Returns true if pathname refers to no filesystem object, every parent 50 // Returns true if pathname refers to no filesystem object, every parent
51 // directory either exists, or is also absent. 51 // directory either exists, or is also absent.
52 virtual bool IsAbsent(const Pathname& pathname); 52 virtual bool IsAbsent(const Pathname& pathname);
53 53
54 // Returns true if pathname represents a temporary location on the system.
55 virtual bool IsTemporaryPath(const Pathname& pathname);
56
57 // All of the following functions set pathname and return true if successful. 54 // All of the following functions set pathname and return true if successful.
58 // Returned paths always include a trailing backslash. 55 // Returned paths always include a trailing backslash.
59 // If create is true, the path will be recursively created. 56 // If create is true, the path will be recursively created.
60 // If append is non-null, it will be appended (and possibly created). 57 // If append is non-null, it will be appended (and possibly created).
61 58
62 virtual std::string TempFilename(const Pathname &dir, const std::string &prefi x); 59 virtual std::string TempFilename(const Pathname &dir, const std::string &prefi x);
63 60
64 virtual bool GetFileSize(const Pathname& path, size_t* size); 61 virtual bool GetFileSize(const Pathname& path, size_t* size);
65 virtual bool GetFileTime(const Pathname& path, FileTimeType which, 62 virtual bool GetFileTime(const Pathname& path, FileTimeType which,
66 time_t* time); 63 time_t* time);
67 64
68 // A folder appropriate for storing temporary files (Contents are 65 // A folder appropriate for storing temporary files (Contents are
69 // automatically deleted when the program exists) 66 // automatically deleted when the program exists)
70 virtual bool GetTemporaryFolder(Pathname &path, bool create, 67 virtual bool GetTemporaryFolder(Pathname &path, bool create,
71 const std::string *append); 68 const std::string *append);
72 69
73 // Get a temporary folder that is unique to the current user and application.
74 virtual bool GetAppTempFolder(Pathname* path);
75
76 private: 70 private:
77 // Returns the path to the running application. 71 // Returns the path to the running application.
78 bool GetAppPathname(Pathname* path); 72 bool GetAppPathname(Pathname* path);
79 }; 73 };
80 74
81 } // namespace rtc 75 } // namespace rtc
82 76
83 #endif // WEBRTC_WINFILESYSTEM_H__ 77 #endif // WEBRTC_WINFILESYSTEM_H__
OLDNEW
« no previous file with comments | « webrtc/base/unixfilesystem.cc ('k') | webrtc/base/win32filesystem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698