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

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

Issue 14075016: Change some snapshot- or temporary-file related changes to use ScopedFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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/fileapi/local_file_system_operation.cc ('k') | webkit/fileapi/local_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_LOCAL_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual base::PlatformFileError CopyInForeignFile( 75 virtual base::PlatformFileError CopyInForeignFile(
76 FileSystemOperationContext* context, 76 FileSystemOperationContext* context,
77 const base::FilePath& src_file_path, 77 const base::FilePath& src_file_path,
78 const FileSystemURL& dest_url) OVERRIDE; 78 const FileSystemURL& dest_url) OVERRIDE;
79 virtual base::PlatformFileError DeleteFile( 79 virtual base::PlatformFileError DeleteFile(
80 FileSystemOperationContext* context, 80 FileSystemOperationContext* context,
81 const FileSystemURL& url) OVERRIDE; 81 const FileSystemURL& url) OVERRIDE;
82 virtual base::PlatformFileError DeleteDirectory( 82 virtual base::PlatformFileError DeleteDirectory(
83 FileSystemOperationContext* context, 83 FileSystemOperationContext* context,
84 const FileSystemURL& url) OVERRIDE; 84 const FileSystemURL& url) OVERRIDE;
85 virtual base::PlatformFileError CreateSnapshotFile( 85 virtual webkit_blob::ScopedFile CreateSnapshotFile(
86 FileSystemOperationContext* context, 86 FileSystemOperationContext* context,
87 const FileSystemURL& url, 87 const FileSystemURL& url,
88 base::PlatformFileError* error,
88 base::PlatformFileInfo* file_info, 89 base::PlatformFileInfo* file_info,
89 base::FilePath* platform_path, 90 base::FilePath* platform_path) OVERRIDE;
90 SnapshotFilePolicy* snapshot_policy) OVERRIDE;
91 91
92 private: 92 private:
93 // Given the filesystem url, produces a real, full local path for the 93 // Given the filesystem url, produces a real, full local path for the
94 // underlying filesystem (which is usually the native filesystem). 94 // underlying filesystem (which is usually the native filesystem).
95 FileSystemURL GetLocalPath( 95 FileSystemURL GetLocalPath(
96 FileSystemOperationContext* context, 96 FileSystemOperationContext* context,
97 const FileSystemURL& url); 97 const FileSystemURL& url);
98 98
99 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); 99 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
100 }; 100 };
101 101
102 } // namespace fileapi 102 } // namespace fileapi
103 103
104 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 104 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_system_operation.cc ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698