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

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

Issue 2747373003: Delete FilesystemInterface::CopyFile. (Closed)
Patch Set: Created 3 years, 9 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 23 matching lines...) Expand all
34 // /foo does not exist. 34 // /foo does not exist.
35 // Returns TRUE if function succeeds 35 // Returns TRUE if function succeeds
36 virtual bool CreateFolder(const Pathname &pathname); 36 virtual bool CreateFolder(const Pathname &pathname);
37 37
38 // This moves a file from old_path to new_path. If the new path is on a 38 // This moves a file from old_path to new_path. If the new path is on a
39 // different volume than the old, it will attempt to copy and then delete 39 // different volume than the old, it will attempt to copy and then delete
40 // the folder 40 // the folder
41 // Returns true if the file is successfully moved 41 // Returns true if the file is successfully moved
42 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 42 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path);
43 43
44 // This copies a file from old_path to _new_path
45 // Returns true if function succeeds
46 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
47
48 // Returns true if a pathname is a directory 44 // Returns true if a pathname is a directory
49 virtual bool IsFolder(const Pathname& pathname); 45 virtual bool IsFolder(const Pathname& pathname);
50 46
51 // Returns true if a file exists at path 47 // Returns true if a file exists at path
52 virtual bool IsFile(const Pathname &path); 48 virtual bool IsFile(const Pathname &path);
53 49
54 // Returns true if pathname refers to no filesystem object, every parent 50 // Returns true if pathname refers to no filesystem object, every parent
55 // directory either exists, or is also absent. 51 // directory either exists, or is also absent.
56 virtual bool IsAbsent(const Pathname& pathname); 52 virtual bool IsAbsent(const Pathname& pathname);
57 53
(...skipping 20 matching lines...) Expand all
78 virtual bool GetAppTempFolder(Pathname* path); 74 virtual bool GetAppTempFolder(Pathname* path);
79 75
80 private: 76 private:
81 // Returns the path to the running application. 77 // Returns the path to the running application.
82 bool GetAppPathname(Pathname* path); 78 bool GetAppPathname(Pathname* path);
83 }; 79 };
84 80
85 } // namespace rtc 81 } // namespace rtc
86 82
87 #endif // WEBRTC_WINFILESYSTEM_H__ 83 #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