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

Side by Side Diff: webkit/fileapi/local_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/isolated_file_util.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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/file_util_proxy.h" 14 #include "base/file_util_proxy.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/platform_file.h" 16 #include "base/platform_file.h"
17 #include "webkit/blob/shareable_file_reference.h"
17 #include "webkit/fileapi/fileapi_export.h" 18 #include "webkit/fileapi/fileapi_export.h"
18 #include "webkit/fileapi/file_system_file_util.h" 19 #include "webkit/fileapi/file_system_file_util.h"
19 #include "webkit/fileapi/file_system_types.h" 20 #include "webkit/fileapi/file_system_types.h"
20 21
21 namespace base { 22 namespace base {
22 struct PlatformFileInfo; 23 struct PlatformFileInfo;
23 class Time; 24 class Time;
24 } 25 }
25 26
26 class GURL; 27 class GURL;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual PlatformFileError CopyInForeignFile( 99 virtual PlatformFileError CopyInForeignFile(
99 FileSystemOperationContext* context, 100 FileSystemOperationContext* context,
100 const FilePath& src_file_path, 101 const FilePath& src_file_path,
101 const FileSystemURL& dest_url) OVERRIDE; 102 const FileSystemURL& dest_url) OVERRIDE;
102 virtual PlatformFileError DeleteFile( 103 virtual PlatformFileError DeleteFile(
103 FileSystemOperationContext* context, 104 FileSystemOperationContext* context,
104 const FileSystemURL& url) OVERRIDE; 105 const FileSystemURL& url) OVERRIDE;
105 virtual PlatformFileError DeleteSingleDirectory( 106 virtual PlatformFileError DeleteSingleDirectory(
106 FileSystemOperationContext* context, 107 FileSystemOperationContext* context,
107 const FileSystemURL& url) OVERRIDE; 108 const FileSystemURL& url) OVERRIDE;
109 virtual scoped_refptr<webkit_blob::ShareableFileReference>
110 CreateSnapshotFile(FileSystemOperationContext* context,
111 const FileSystemURL& url,
112 base::PlatformFileError* result,
113 base::PlatformFileInfo* file_info,
114 FilePath* platform_path) OVERRIDE;
108 115
109 private: 116 private:
110 // Given the filesystem url, produces a real, full local path for the 117 // Given the filesystem url, produces a real, full local path for the
111 // underlying filesystem (which is usually the native filesystem). 118 // underlying filesystem (which is usually the native filesystem).
112 FileSystemURL GetLocalPath( 119 FileSystemURL GetLocalPath(
113 FileSystemOperationContext* context, 120 FileSystemOperationContext* context,
114 const FileSystemURL& url); 121 const FileSystemURL& url);
115 122
116 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); 123 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
117 }; 124 };
118 125
119 } // namespace fileapi 126 } // namespace fileapi
120 127
121 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 128 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/isolated_file_util.cc ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698