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

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

Issue 10834167: Create ShareableFileReference on IO thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding unknown policy for DCHECK 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/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 <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual PlatformFileError CopyInForeignFile( 96 virtual PlatformFileError CopyInForeignFile(
97 FileSystemOperationContext* context, 97 FileSystemOperationContext* context,
98 const FilePath& src_file_path, 98 const FilePath& src_file_path,
99 const FileSystemURL& dest_url) OVERRIDE; 99 const FileSystemURL& dest_url) OVERRIDE;
100 virtual PlatformFileError DeleteFile( 100 virtual PlatformFileError DeleteFile(
101 FileSystemOperationContext* context, 101 FileSystemOperationContext* context,
102 const FileSystemURL& url) OVERRIDE; 102 const FileSystemURL& url) OVERRIDE;
103 virtual PlatformFileError DeleteSingleDirectory( 103 virtual PlatformFileError DeleteSingleDirectory(
104 FileSystemOperationContext* context, 104 FileSystemOperationContext* context,
105 const FileSystemURL& url) OVERRIDE; 105 const FileSystemURL& url) OVERRIDE;
106 virtual scoped_refptr<webkit_blob::ShareableFileReference> 106 virtual PlatformFileError CreateSnapshotFile(
107 CreateSnapshotFile(FileSystemOperationContext* context, 107 FileSystemOperationContext* context,
108 const FileSystemURL& url, 108 const FileSystemURL& url,
109 base::PlatformFileError* result, 109 base::PlatformFileInfo* file_info,
110 base::PlatformFileInfo* file_info, 110 FilePath* platform_path,
111 FilePath* platform_path) OVERRIDE; 111 SnapshotFilePolicy* snapshot_policy) OVERRIDE;
112 112
113 private: 113 private:
114 // Given the filesystem url, produces a real, full local path for the 114 // Given the filesystem url, produces a real, full local path for the
115 // underlying filesystem (which is usually the native filesystem). 115 // underlying filesystem (which is usually the native filesystem).
116 FileSystemURL GetLocalPath( 116 FileSystemURL GetLocalPath(
117 FileSystemOperationContext* context, 117 FileSystemOperationContext* context,
118 const FileSystemURL& url); 118 const FileSystemURL& url);
119 119
120 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); 120 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
121 }; 121 };
122 122
123 } // namespace fileapi 123 } // namespace fileapi
124 124
125 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 125 #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