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 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/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual bool CreateFolder(const Pathname &pathname, mode_t mode); 55 virtual bool CreateFolder(const Pathname &pathname, mode_t mode);
56 56
57 // As above, with mode = 0755. 57 // As above, with mode = 0755.
58 bool CreateFolder(const Pathname& pathname) override; 58 bool CreateFolder(const Pathname& pathname) override;
59 59
60 // This moves a file from old_path to new_path, where "file" can be a plain 60 // This moves a file from old_path to new_path, where "file" can be a plain
61 // file or directory, which will be moved recursively. 61 // file or directory, which will be moved recursively.
62 // Returns true if function succeeds. 62 // Returns true if function succeeds.
63 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; 63 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override;
64 64
65 // This copies a file from old_path to _new_path where "file" can be a plain
66 // file or directory, which will be copied recursively.
67 // Returns true if function succeeds
68 bool CopyFile(const Pathname& old_path, const Pathname& new_path) override;
69
70 // Returns true if a pathname is a directory 65 // Returns true if a pathname is a directory
71 bool IsFolder(const Pathname& pathname) override; 66 bool IsFolder(const Pathname& pathname) override;
72 67
73 // Returns true if pathname represents a temporary location on the system. 68 // Returns true if pathname represents a temporary location on the system.
74 bool IsTemporaryPath(const Pathname& pathname) override; 69 bool IsTemporaryPath(const Pathname& pathname) override;
75 70
76 // Returns true of pathname represents an existing file 71 // Returns true of pathname represents an existing file
77 bool IsFile(const Pathname& pathname) override; 72 bool IsFile(const Pathname& pathname) override;
78 73
79 // Returns true if pathname refers to no filesystem object, every parent 74 // Returns true if pathname refers to no filesystem object, every parent
(...skipping 24 matching lines...) Expand all
104 #else 99 #else
105 static char* app_temp_path_; 100 static char* app_temp_path_;
106 #endif 101 #endif
107 102
108 static char* CopyString(const std::string& str); 103 static char* CopyString(const std::string& str);
109 }; 104 };
110 105
111 } // namespace rtc 106 } // namespace rtc
112 107
113 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ 108 #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