OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SANDBOXED_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_OPERATION_H_ |
6 #define WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_OPERATION_H_ |
7 | 7 |
8 #include "base/scoped_callback_factory.h" | 8 #include "base/scoped_callback_factory.h" |
9 #include "webkit/fileapi/file_system_operation.h" | 9 #include "webkit/fileapi/file_system_operation.h" |
10 #include "webkit/fileapi/file_system_types.h" | 10 #include "webkit/fileapi/file_system_types.h" |
11 | 11 |
(...skipping 28 matching lines...) Expand all Loading... |
40 virtual void Copy(const FilePath& src_path, | 40 virtual void Copy(const FilePath& src_path, |
41 const FilePath& dest_path); | 41 const FilePath& dest_path); |
42 virtual void Move(const FilePath& src_path, | 42 virtual void Move(const FilePath& src_path, |
43 const FilePath& dest_path); | 43 const FilePath& dest_path); |
44 virtual void DirectoryExists(const FilePath& path); | 44 virtual void DirectoryExists(const FilePath& path); |
45 virtual void FileExists(const FilePath& path); | 45 virtual void FileExists(const FilePath& path); |
46 virtual void GetMetadata(const FilePath& path); | 46 virtual void GetMetadata(const FilePath& path); |
47 virtual void ReadDirectory(const FilePath& path); | 47 virtual void ReadDirectory(const FilePath& path); |
48 virtual void Remove(const FilePath& path, bool recursive); | 48 virtual void Remove(const FilePath& path, bool recursive); |
49 virtual void Write( | 49 virtual void Write( |
50 scoped_refptr<URLRequestContext> url_request_context, | 50 scoped_refptr<net::URLRequestContext> url_request_context, |
51 const FilePath& path, const GURL& blob_url, int64 offset); | 51 const FilePath& path, const GURL& blob_url, int64 offset); |
52 virtual void Truncate(const FilePath& path, int64 length); | 52 virtual void Truncate(const FilePath& path, int64 length); |
53 virtual void TouchFile(const FilePath& path, | 53 virtual void TouchFile(const FilePath& path, |
54 const base::Time& last_access_time, | 54 const base::Time& last_access_time, |
55 const base::Time& last_modified_time); | 55 const base::Time& last_modified_time); |
56 | 56 |
57 private: | 57 private: |
58 enum SandboxedFileSystemOperationType { | 58 enum SandboxedFileSystemOperationType { |
59 kOperationOpenFileSystem = 100, | 59 kOperationOpenFileSystem = 100, |
60 }; | 60 }; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 scoped_refptr<SandboxedFileSystemContext> file_system_context_; | 93 scoped_refptr<SandboxedFileSystemContext> file_system_context_; |
94 | 94 |
95 base::ScopedCallbackFactory<SandboxedFileSystemOperation> callback_factory_; | 95 base::ScopedCallbackFactory<SandboxedFileSystemOperation> callback_factory_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(SandboxedFileSystemOperation); | 97 DISALLOW_COPY_AND_ASSIGN(SandboxedFileSystemOperation); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace fileapi | 100 } // namespace fileapi |
101 | 101 |
102 #endif // WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_OPERATION_H_ | 102 #endif // WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |