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

Side by Side Diff: webkit/fileapi/obfuscated_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/media/device_media_file_util.cc ('k') | webkit/fileapi/obfuscated_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_OBFUSCATED_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual PlatformFileError CopyInForeignFile( 115 virtual PlatformFileError CopyInForeignFile(
116 FileSystemOperationContext* context, 116 FileSystemOperationContext* context,
117 const FilePath& src_file_path, 117 const FilePath& src_file_path,
118 const FileSystemURL& dest_url) OVERRIDE; 118 const FileSystemURL& dest_url) OVERRIDE;
119 virtual base::PlatformFileError DeleteFile( 119 virtual base::PlatformFileError DeleteFile(
120 FileSystemOperationContext* context, 120 FileSystemOperationContext* context,
121 const FileSystemURL& url) OVERRIDE; 121 const FileSystemURL& url) OVERRIDE;
122 virtual base::PlatformFileError DeleteSingleDirectory( 122 virtual base::PlatformFileError DeleteSingleDirectory(
123 FileSystemOperationContext* context, 123 FileSystemOperationContext* context,
124 const FileSystemURL& url) OVERRIDE; 124 const FileSystemURL& url) OVERRIDE;
125 virtual scoped_refptr<webkit_blob::ShareableFileReference> 125 virtual base::PlatformFileError CreateSnapshotFile(
126 CreateSnapshotFile(FileSystemOperationContext* context, 126 FileSystemOperationContext* context,
127 const FileSystemURL& url, 127 const FileSystemURL& url,
128 base::PlatformFileError* result, 128 base::PlatformFileInfo* file_info,
129 base::PlatformFileInfo* file_info, 129 FilePath* platform_path,
130 FilePath* platform_path) OVERRIDE; 130 SnapshotFilePolicy* policy) OVERRIDE;
131 131
132 // Gets the topmost directory specific to this origin and type. This will 132 // Gets the topmost directory specific to this origin and type. This will
133 // contain both the directory database's files and all the backing file 133 // contain both the directory database's files and all the backing file
134 // subdirectories. 134 // subdirectories.
135 // Returns an empty path if the directory is undefined (e.g. because |type| 135 // Returns an empty path if the directory is undefined (e.g. because |type|
136 // is invalid). If the directory is defined, it will be returned, even if 136 // is invalid). If the directory is defined, it will be returned, even if
137 // there is a file system error (e.g. the directory doesn't exist on disk and 137 // there is a file system error (e.g. the directory doesn't exist on disk and
138 // |create| is false). Callers should always check |error_code| to make sure 138 // |create| is false). Callers should always check |error_code| to make sure
139 // the returned path is usable. 139 // the returned path is usable.
140 FilePath GetDirectoryForOriginAndType( 140 FilePath GetDirectoryForOriginAndType(
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 scoped_ptr<FileSystemOriginDatabase> origin_database_; 257 scoped_ptr<FileSystemOriginDatabase> origin_database_;
258 FilePath file_system_directory_; 258 FilePath file_system_directory_;
259 base::OneShotTimer<ObfuscatedFileUtil> timer_; 259 base::OneShotTimer<ObfuscatedFileUtil> timer_;
260 260
261 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); 261 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
262 }; 262 };
263 263
264 } // namespace fileapi 264 } // namespace fileapi
265 265
266 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_ 266 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/media/device_media_file_util.cc ('k') | webkit/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698