OLD | NEW |
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_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 6 #define WEBKIT_BROWSER_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 FileSystemOperationContext* context, | 83 FileSystemOperationContext* context, |
84 const FileSystemURL& url) OVERRIDE; | 84 const FileSystemURL& url) OVERRIDE; |
85 virtual webkit_blob::ScopedFile 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::PlatformFileError* error, |
89 base::PlatformFileInfo* file_info, | 89 base::PlatformFileInfo* file_info, |
90 base::FilePath* platform_path) OVERRIDE; | 90 base::FilePath* platform_path) OVERRIDE; |
91 | 91 |
92 private: | 92 private: |
93 // Given the filesystem url, produces a real, full local path for the | |
94 // underlying filesystem (which is usually the native filesystem). | |
95 FileSystemURL GetLocalPath( | |
96 FileSystemOperationContext* context, | |
97 const FileSystemURL& url); | |
98 | |
99 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); | 93 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); |
100 }; | 94 }; |
101 | 95 |
102 } // namespace fileapi | 96 } // namespace fileapi |
103 | 97 |
104 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 98 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
OLD | NEW |