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

Unified Diff: webrtc/base/win32filesystem.h

Issue 2445733002: Delete unused features of rtc::FilesystemInterface. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/unixfilesystem.cc ('k') | webrtc/base/win32filesystem.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/win32filesystem.h
diff --git a/webrtc/base/win32filesystem.h b/webrtc/base/win32filesystem.h
index 439b2c6268f629c4733ea1ed9c019a400f60bb76..e81def314efc62a549ab7bfeb1643d7d04babe53 100644
--- a/webrtc/base/win32filesystem.h
+++ b/webrtc/base/win32filesystem.h
@@ -22,10 +22,6 @@ class Win32Filesystem : public FilesystemInterface {
virtual FileStream *OpenFile(const Pathname &filename,
const std::string &mode);
- // Atomically creates an empty file accessible only to the current user if one
- // does not already exist at the given path, otherwise fails.
- virtual bool CreatePrivateFile(const Pathname &filename);
-
// This will attempt to delete the path located at filename.
// If the path points to a folder, it will fail with VERIFY
virtual bool DeleteFile(const Pathname &filename);
@@ -45,11 +41,6 @@ class Win32Filesystem : public FilesystemInterface {
// Returns true if the file is successfully moved
virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path);
- // Moves a folder from old_path to new_path. If the new path is on a different
- // volume from the old, it will attempt to Copy and then Delete the folder
- // Returns true if the folder is successfully moved
- virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path);
-
// This copies a file from old_path to _new_path
// Returns true if function succeeds
virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
@@ -77,15 +68,12 @@ class Win32Filesystem : public FilesystemInterface {
virtual bool GetFileSize(const Pathname& path, size_t* size);
virtual bool GetFileTime(const Pathname& path, FileTimeType which,
time_t* time);
-
+
// A folder appropriate for storing temporary files (Contents are
// automatically deleted when the program exists)
virtual bool GetTemporaryFolder(Pathname &path, bool create,
const std::string *append);
- // Returns the path to the running application.
- virtual bool GetAppPathname(Pathname* path);
-
virtual bool GetAppDataFolder(Pathname* path, bool per_user);
// Get a temporary folder that is unique to the current user and application.
@@ -93,7 +81,9 @@ class Win32Filesystem : public FilesystemInterface {
virtual bool GetDiskFreeSpace(const Pathname& path, int64_t* free_bytes);
- virtual Pathname GetCurrentDirectory();
+ private:
+ // Returns the path to the running application.
+ bool GetAppPathname(Pathname* path);
};
} // namespace rtc
« 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