| OLD | NEW |
| 1 // Copyright (c) 2011 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_FILE_SYSTEM_PATH_MANAGER_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 typedef Callback3<bool /* success */, | 51 typedef Callback3<bool /* success */, |
| 52 const FilePath& /* root_path */, | 52 const FilePath& /* root_path */, |
| 53 const std::string& /* name */>::Type GetRootPathCallback; | 53 const std::string& /* name */>::Type GetRootPathCallback; |
| 54 | 54 |
| 55 // Retrieves the root path for the given |origin_url| and |type|, and | 55 // Retrieves the root path for the given |origin_url| and |type|, and |
| 56 // calls the given |callback| with the root path and name. | 56 // calls the given |callback| with the root path and name. |
| 57 // If |create| is true this also creates the directory if it doesn't exist. | 57 // If |create| is true this also creates the directory if it doesn't exist. |
| 58 virtual void GetFileSystemRootPath(const GURL& origin_url, | 58 virtual void GetFileSystemRootPath(const GURL& origin_url, |
| 59 FileSystemType type, | 59 FileSystemType type, |
| 60 bool create, | 60 bool create, |
| 61 bool is_file_system, |
| 62 const FilePath& virtual_path, |
| 61 FileSystemPathManager::GetRootPathCallback* | 63 FileSystemPathManager::GetRootPathCallback* |
| 62 callback); | 64 callback); |
| 63 | 65 |
| 64 // Like GetFileSystemRootPath, but synchronous, and can be called only while | 66 // Like GetFileSystemRootPath, but synchronous, and can be called only while |
| 65 // running on the file thread. | 67 // running on the file thread. |
| 66 virtual FilePath GetFileSystemRootPathOnFileThread( | 68 virtual FilePath GetFileSystemRootPathOnFileThread( |
| 67 const GURL& origin_url, | 69 const GURL& origin_url, |
| 68 FileSystemType type, | 70 FileSystemType type, |
| 69 const FilePath& virtual_path, | 71 const FilePath& virtual_path, |
| 70 bool create); | 72 bool create); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const bool allow_file_access_from_files_; | 105 const bool allow_file_access_from_files_; |
| 104 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; | 106 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; |
| 105 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; | 107 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; |
| 106 | 108 |
| 107 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); | 109 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); |
| 108 }; | 110 }; |
| 109 | 111 |
| 110 } // namespace fileapi | 112 } // namespace fileapi |
| 111 | 113 |
| 112 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ | 114 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ |
| OLD | NEW |