Chromium Code Reviews| 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_old.h" | 9 #include "base/callback_old.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "webkit/fileapi/file_system_types.h" | 12 #include "webkit/fileapi/file_system_types.h" |
| 13 #include "webkit/quota/special_storage_policy.h" | 13 #include "webkit/quota/special_storage_policy.h" |
| 14 | 14 |
| 15 class GURL; | 15 class GURL; |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class MessageLoopProxy; | 18 class MessageLoopProxy; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace fileapi { | 21 namespace fileapi { |
| 22 | 22 |
| 23 class ExternalFileSystemMountPointProvider; | 23 class ExternalFileSystemMountPointProvider; |
| 24 class FileSystemFileUtil; | 24 class FileSystemFileUtil; |
| 25 class LocalFileSystemFileUtil; | |
| 25 class SandboxMountPointProvider; | 26 class SandboxMountPointProvider; |
| 26 | 27 |
| 27 class FileSystemPathManager { | 28 class FileSystemPathManager { |
| 28 public: | 29 public: |
| 29 FileSystemPathManager( | 30 FileSystemPathManager( |
| 30 scoped_refptr<base::MessageLoopProxy> file_message_loop, | 31 scoped_refptr<base::MessageLoopProxy> file_message_loop, |
| 31 const FilePath& profile_path, | 32 const FilePath& profile_path, |
| 32 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, | 33 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, |
| 33 bool is_incognito, | 34 bool is_incognito, |
| 34 bool allow_file_access_from_files); | 35 bool allow_file_access_from_files); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 return external_provider_.get(); | 89 return external_provider_.get(); |
| 89 } | 90 } |
| 90 | 91 |
| 91 bool is_incognito() const { | 92 bool is_incognito() const { |
| 92 return is_incognito_; | 93 return is_incognito_; |
| 93 } | 94 } |
| 94 | 95 |
| 95 private: | 96 private: |
| 96 const bool is_incognito_; | 97 const bool is_incognito_; |
| 97 const bool allow_file_access_from_files_; | 98 const bool allow_file_access_from_files_; |
| 99 scoped_ptr<LocalFileSystemFileUtil> local_file_util_; | |
|
ericu
2011/06/17 20:32:07
This seems odd. Why should a FileSystemPathManage
Dai Mikurube (NOT FULLTIME)
2011/06/23 08:13:32
Agreed. It's better for the FSFU instance in Moun
| |
| 98 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; | 100 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; |
| 99 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; | 101 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; |
| 100 | 102 |
| 101 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); | 103 DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager); |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace fileapi | 106 } // namespace fileapi |
| 105 | 107 |
| 106 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ | 108 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_ |
| OLD | NEW |