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

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

Issue 2647663002: Delete or update left-over ASSERT use and comments. (Closed)
Patch Set: Created 3 years, 11 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
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 26 matching lines...) Expand all
37 // Opens a file. Returns an open StreamInterface if function succeeds. 37 // Opens a file. Returns an open StreamInterface if function succeeds.
38 // Otherwise, returns NULL. 38 // Otherwise, returns NULL.
39 FileStream* OpenFile(const Pathname& filename, 39 FileStream* OpenFile(const Pathname& filename,
40 const std::string& mode) override; 40 const std::string& mode) override;
41 41
42 // This will attempt to delete the file located at filename. 42 // This will attempt to delete the file located at filename.
43 // It will fail with VERIY if you pass it a non-existant file, or a directory. 43 // It will fail with VERIY if you pass it a non-existant file, or a directory.
44 bool DeleteFile(const Pathname& filename) override; 44 bool DeleteFile(const Pathname& filename) override;
45 45
46 // This will attempt to delete the folder located at 'folder' 46 // This will attempt to delete the folder located at 'folder'
47 // It ASSERTs and returns false if you pass it a non-existant folder or a 47 // It DCHECKs and returns false if you pass it a non-existant folder or a
48 // plain file. 48 // plain file.
49 bool DeleteEmptyFolder(const Pathname& folder) override; 49 bool DeleteEmptyFolder(const Pathname& folder) override;
50 50
51 // Creates a directory. This will call itself recursively to create /foo/bar 51 // Creates a directory. This will call itself recursively to create /foo/bar
52 // even if /foo does not exist. All created directories are created with the 52 // even if /foo does not exist. All created directories are created with the
53 // given mode. 53 // given mode.
54 // Returns TRUE if function succeeds 54 // Returns TRUE if function succeeds
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.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 #else 108 #else
109 static char* app_temp_path_; 109 static char* app_temp_path_;
110 #endif 110 #endif
111 111
112 static char* CopyString(const std::string& str); 112 static char* CopyString(const std::string& str);
113 }; 113 };
114 114
115 } // namespace rtc 115 } // namespace rtc
116 116
117 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_ 117 #endif // WEBRTC_BASE_UNIXFILESYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698