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

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

Issue 10815003: Adding FileUtil::CreateSnapshotFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/file_util_helper.cc ('k') | webkit/fileapi/isolated_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_ISOLATED_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_ISOLATED_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/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual base::PlatformFileError CopyInForeignFile( 82 virtual base::PlatformFileError CopyInForeignFile(
83 FileSystemOperationContext* context, 83 FileSystemOperationContext* context,
84 const FilePath& src_file_path, 84 const FilePath& src_file_path,
85 const FileSystemURL& dest_url) OVERRIDE; 85 const FileSystemURL& dest_url) OVERRIDE;
86 virtual base::PlatformFileError DeleteFile( 86 virtual base::PlatformFileError DeleteFile(
87 FileSystemOperationContext* context, 87 FileSystemOperationContext* context,
88 const FileSystemURL& url) OVERRIDE; 88 const FileSystemURL& url) OVERRIDE;
89 virtual base::PlatformFileError DeleteSingleDirectory( 89 virtual base::PlatformFileError DeleteSingleDirectory(
90 FileSystemOperationContext* context, 90 FileSystemOperationContext* context,
91 const FileSystemURL& url) OVERRIDE; 91 const FileSystemURL& url) OVERRIDE;
92 virtual scoped_refptr<webkit_blob::ShareableFileReference>
93 CreateSnapshotFile(FileSystemOperationContext* context,
94 const FileSystemURL& url,
95 base::PlatformFileError* result,
96 base::PlatformFileInfo* file_info,
97 FilePath* platform_path) OVERRIDE;
92 98
93 private: 99 private:
94 // Returns false if the given |url| is not a valid path. 100 // Returns false if the given |url| is not a valid path.
95 bool GetPlatformPath(const FileSystemURL& url, 101 bool GetPlatformPath(const FileSystemURL& url,
96 FilePath* platform_path) const; 102 FilePath* platform_path) const;
97 DISALLOW_COPY_AND_ASSIGN(IsolatedFileUtil); 103 DISALLOW_COPY_AND_ASSIGN(IsolatedFileUtil);
98 }; 104 };
99 105
100 } // namespace fileapi 106 } // namespace fileapi
101 107
102 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ 108 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_util_helper.cc ('k') | webkit/fileapi/isolated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698