| 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 STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 6 #define STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 base::FilePath* root, | 320 base::FilePath* root, |
| 321 base::FilePath* local_path); | 321 base::FilePath* local_path); |
| 322 | 322 |
| 323 base::File CreateOrOpenInternal( | 323 base::File CreateOrOpenInternal( |
| 324 FileSystemOperationContext* context, | 324 FileSystemOperationContext* context, |
| 325 const FileSystemURL& url, | 325 const FileSystemURL& url, |
| 326 int file_flags); | 326 int file_flags); |
| 327 | 327 |
| 328 bool HasIsolatedStorage(const GURL& origin); | 328 bool HasIsolatedStorage(const GURL& origin); |
| 329 | 329 |
| 330 typedef std::map<std::string, SandboxDirectoryDatabase*> DirectoryMap; | 330 std::map<std::string, std::unique_ptr<SandboxDirectoryDatabase>> directories_; |
| 331 DirectoryMap directories_; | |
| 332 std::unique_ptr<SandboxOriginDatabaseInterface> origin_database_; | 331 std::unique_ptr<SandboxOriginDatabaseInterface> origin_database_; |
| 333 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 332 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
| 334 base::FilePath file_system_directory_; | 333 base::FilePath file_system_directory_; |
| 335 leveldb::Env* env_override_; | 334 leveldb::Env* env_override_; |
| 336 | 335 |
| 337 // Used to delete database after a certain period of inactivity. | 336 // Used to delete database after a certain period of inactivity. |
| 338 int64_t db_flush_delay_seconds_; | 337 int64_t db_flush_delay_seconds_; |
| 339 | 338 |
| 340 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 339 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
| 341 std::unique_ptr<TimedTaskHelper> timer_; | 340 std::unique_ptr<TimedTaskHelper> timer_; |
| 342 | 341 |
| 343 GetTypeStringForURLCallback get_type_string_for_url_; | 342 GetTypeStringForURLCallback get_type_string_for_url_; |
| 344 std::set<std::string> known_type_strings_; | 343 std::set<std::string> known_type_strings_; |
| 345 | 344 |
| 346 // Not owned. | 345 // Not owned. |
| 347 SandboxFileSystemBackendDelegate* sandbox_delegate_; | 346 SandboxFileSystemBackendDelegate* sandbox_delegate_; |
| 348 | 347 |
| 349 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); | 348 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil); |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 } // namespace storage | 351 } // namespace storage |
| 353 | 352 |
| 354 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ | 353 #endif // STORAGE_BROWSER_FILEAPI_OBFUSCATED_FILE_UTIL_H_ |
| OLD | NEW |