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

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

Issue 10829258: Clean-up inline members of nested classes (webkit/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « webkit/appcache/appcache_disk_cache.cc ('k') | webkit/fileapi/file_system_file_util.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util_proxy.h" 9 #include "base/file_util_proxy.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // The FileAPI backend does nothing on the returned file. 54 // The FileAPI backend does nothing on the returned file.
55 kSnapshotFileLocal, 55 kSnapshotFileLocal,
56 56
57 // The implementation returns a temporary file as the snapshot file. 57 // The implementation returns a temporary file as the snapshot file.
58 // The FileAPI backend takes care of the lifetime of the returned file 58 // The FileAPI backend takes care of the lifetime of the returned file
59 // and will delete when the last reference of the file is dropped. 59 // and will delete when the last reference of the file is dropped.
60 kSnapshotFileTemporary, 60 kSnapshotFileTemporary,
61 }; 61 };
62 62
63 class EmptyFileEnumerator : public AbstractFileEnumerator { 63 class EmptyFileEnumerator : public AbstractFileEnumerator {
64 virtual FilePath Next() OVERRIDE { return FilePath(); } 64 virtual FilePath Next() OVERRIDE;
65 virtual int64 Size() OVERRIDE { return 0; } 65 virtual int64 Size() OVERRIDE;
66 virtual base::Time LastModifiedTime() OVERRIDE { return base::Time(); } 66 virtual base::Time LastModifiedTime() OVERRIDE;
67 virtual bool IsDirectory() OVERRIDE { return false; } 67 virtual bool IsDirectory() OVERRIDE;
68 }; 68 };
69 69
70 virtual ~FileSystemFileUtil() {} 70 virtual ~FileSystemFileUtil() {}
71 71
72 // Creates or opens a file with the given flags. 72 // Creates or opens a file with the given flags.
73 // If PLATFORM_FILE_CREATE is set in |file_flags| it always tries to create 73 // If PLATFORM_FILE_CREATE is set in |file_flags| it always tries to create
74 // a new file at the given |url| and calls back with 74 // a new file at the given |url| and calls back with
75 // PLATFORM_FILE_ERROR_FILE_EXISTS if the |url| already exists. 75 // PLATFORM_FILE_ERROR_FILE_EXISTS if the |url| already exists.
76 virtual PlatformFileError CreateOrOpen( 76 virtual PlatformFileError CreateOrOpen(
77 FileSystemOperationContext* context, 77 FileSystemOperationContext* context,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 protected: 211 protected:
212 FileSystemFileUtil() {} 212 FileSystemFileUtil() {}
213 213
214 private: 214 private:
215 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); 215 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil);
216 }; 216 };
217 217
218 } // namespace fileapi 218 } // namespace fileapi
219 219
220 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 220 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_disk_cache.cc ('k') | webkit/fileapi/file_system_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698