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_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ |
6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include "base/files/file_util_proxy.h" | 9 #include "base/files/file_util_proxy.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual void createSnapshotFileAndReadMetadata( | 90 virtual void createSnapshotFileAndReadMetadata( |
91 const WebKit::WebURL& path, | 91 const WebKit::WebURL& path, |
92 WebKit::WebFileSystemCallbacks* callbacks); | 92 WebKit::WebFileSystemCallbacks* callbacks); |
93 | 93 |
94 // DEPRECATED | 94 // DEPRECATED |
95 virtual void createSnapshotFileAndReadMetadata( | 95 virtual void createSnapshotFileAndReadMetadata( |
96 const WebKit::WebURL& blobURL, | 96 const WebKit::WebURL& blobURL, |
97 const WebKit::WebURL& path, | 97 const WebKit::WebURL& path, |
98 WebKit::WebFileSystemCallbacks* callbacks); | 98 WebKit::WebFileSystemCallbacks* callbacks); |
99 | 99 |
| 100 // DEPRECATED |
100 static void InitializeOnIOThread( | 101 static void InitializeOnIOThread( |
101 webkit_blob::BlobStorageController* blob_storage_controller); | 102 webkit_blob::BlobStorageController* blob_storage_controller); |
102 static void CleanupOnIOThread(); | 103 static void CleanupOnIOThread(); |
103 | 104 |
104 private: | 105 private: |
105 // Helpers. | 106 // Helpers. |
106 bool HasFilePermission(const fileapi::FileSystemURL& url, int permissions); | 107 bool HasFilePermission(const fileapi::FileSystemURL& url, int permissions); |
107 fileapi::FileSystemOperation* GetNewOperation( | 108 fileapi::FileSystemOperation* GetNewOperation( |
108 const fileapi::FileSystemURL& url); | 109 const fileapi::FileSystemURL& url); |
109 | 110 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 157 |
157 // A temporary directory for FileSystem API. | 158 // A temporary directory for FileSystem API. |
158 base::ScopedTempDir file_system_dir_; | 159 base::ScopedTempDir file_system_dir_; |
159 | 160 |
160 scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 161 scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem); | 163 DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem); |
163 }; | 164 }; |
164 | 165 |
165 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ | 166 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ |
OLD | NEW |