| 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_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 #endif | 284 #endif |
| 285 | 285 |
| 286 SandboxFileSystemBackendDelegate* sandbox_delegate() { | 286 SandboxFileSystemBackendDelegate* sandbox_delegate() { |
| 287 return sandbox_delegate_.get(); | 287 return sandbox_delegate_.get(); |
| 288 } | 288 } |
| 289 | 289 |
| 290 // Returns true if the requested url is ok to be served. | 290 // Returns true if the requested url is ok to be served. |
| 291 // (E.g. this returns false if the context is created for incognito mode) | 291 // (E.g. this returns false if the context is created for incognito mode) |
| 292 bool CanServeURLRequest(const FileSystemURL& url) const; | 292 bool CanServeURLRequest(const FileSystemURL& url) const; |
| 293 | 293 |
| 294 // Returns true if a file in the file system should be flushed for each write |
| 295 // completion. |
| 296 bool ShouldFlushOnWriteCompletion(FileSystemType type) const; |
| 297 |
| 294 // This must be used to open 'plugin private' filesystem. | 298 // This must be used to open 'plugin private' filesystem. |
| 295 // See "plugin_private_file_system_backend.h" for more details. | 299 // See "plugin_private_file_system_backend.h" for more details. |
| 296 void OpenPluginPrivateFileSystem( | 300 void OpenPluginPrivateFileSystem( |
| 297 const GURL& origin_url, | 301 const GURL& origin_url, |
| 298 FileSystemType type, | 302 FileSystemType type, |
| 299 const std::string& filesystem_id, | 303 const std::string& filesystem_id, |
| 300 const std::string& plugin_id, | 304 const std::string& plugin_id, |
| 301 OpenFileSystemMode mode, | 305 OpenFileSystemMode mode, |
| 302 const StatusCallback& callback); | 306 const StatusCallback& callback); |
| 303 | 307 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 413 |
| 410 struct DefaultContextDeleter { | 414 struct DefaultContextDeleter { |
| 411 static void Destruct(const FileSystemContext* context) { | 415 static void Destruct(const FileSystemContext* context) { |
| 412 context->DeleteOnCorrectThread(); | 416 context->DeleteOnCorrectThread(); |
| 413 } | 417 } |
| 414 }; | 418 }; |
| 415 | 419 |
| 416 } // namespace fileapi | 420 } // namespace fileapi |
| 417 | 421 |
| 418 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 422 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |