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

Side by Side Diff: webkit/fileapi/file_system_file_util.h

Issue 7087028: roll clang 131935:132017 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 virtual bool IsDirectory() = 0; 225 virtual bool IsDirectory() = 0;
226 }; 226 };
227 227
228 class EmptyFileEnumerator : public AbstractFileEnumerator { 228 class EmptyFileEnumerator : public AbstractFileEnumerator {
229 virtual FilePath Next() { return FilePath(); } 229 virtual FilePath Next() { return FilePath(); }
230 virtual bool IsDirectory() { return false; } 230 virtual bool IsDirectory() { return false; }
231 }; 231 };
232 232
233 protected: 233 protected:
234 FileSystemFileUtil() { } 234 FileSystemFileUtil() { }
235 virtual ~FileSystemFileUtil() { }
235 236
236 // Deletes a directory and all entries under the directory. 237 // Deletes a directory and all entries under the directory.
237 // 238 //
238 // This method is called from Delete. It internally calls two following 239 // This method is called from Delete. It internally calls two following
239 // virtual methods, 240 // virtual methods,
240 // - (virtual) DeleteFile to delete files, and 241 // - (virtual) DeleteFile to delete files, and
241 // - (virtual) DeleteSingleDirectory to delete empty directories after all 242 // - (virtual) DeleteSingleDirectory to delete empty directories after all
242 // the files are deleted. 243 // the files are deleted.
243 PlatformFileError DeleteDirectoryRecursive( 244 PlatformFileError DeleteDirectoryRecursive(
244 FileSystemOperationContext* context, 245 FileSystemOperationContext* context,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 FileSystemOperationContext* unused, 281 FileSystemOperationContext* unused,
281 const FilePath& root_path); 282 const FilePath& root_path);
282 283
283 friend struct DefaultSingletonTraits<FileSystemFileUtil>; 284 friend struct DefaultSingletonTraits<FileSystemFileUtil>;
284 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); 285 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil);
285 }; 286 };
286 287
287 } // namespace fileapi 288 } // namespace fileapi
288 289
289 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 290 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698