| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 static std::string GetFileSystemTypeString(fileapi::FileSystemType type); | 86 static std::string GetFileSystemTypeString(fileapi::FileSystemType type); |
| 87 | 87 |
| 88 // Checks if a given |name| contains any restricted names/chars in it. | 88 // Checks if a given |name| contains any restricted names/chars in it. |
| 89 bool IsRestrictedFileName(FileSystemType type, | 89 bool IsRestrictedFileName(FileSystemType type, |
| 90 const FilePath& filename); | 90 const FilePath& filename); |
| 91 | 91 |
| 92 SandboxMountPointProvider* sandbox_provider() const { | 92 SandboxMountPointProvider* sandbox_provider() const { |
| 93 return sandbox_provider_.get(); | 93 return sandbox_provider_.get(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 FileSystemMountPointProvider* local_provider() const { |
| 97 return local_provider_.get(); |
| 98 } |
| 99 |
| 96 bool is_incognito() const { | 100 bool is_incognito() const { |
| 97 return is_incognito_; | 101 return is_incognito_; |
| 98 } | 102 } |
| 99 | 103 |
| 100 private: | 104 private: |
| 101 const bool is_incognito_; | 105 const bool is_incognito_; |
| 102 const bool allow_file_access_from_files_; | 106 const bool allow_file_access_from_files_; |
| 103 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; | 107 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; |
| 104 scoped_ptr<FileSystemMountPointProvider> local_provider_; | 108 scoped_ptr<FileSystemMountPointProvider> local_provider_; |
| 105 | 109 |
| 106 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); | 110 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); |
| 107 }; | 111 }; |
| 108 | 112 |
| 109 } // namespace fileapi | 113 } // namespace fileapi |
| 110 | 114 |
| 111 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ | 115 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ |
| OLD | NEW |