| 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 #include "content/browser/fileapi/browser_file_system_helper.h" | 5 #include "content/browser/fileapi/browser_file_system_helper.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
| 13 #include "content/browser/child_process_security_policy_impl.h" | 13 #include "content/browser/child_process_security_policy_impl.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/content_browser_client.h" | 15 #include "content/public/browser/content_browser_client.h" |
| 16 #include "content/public/common/content_client.h" | 16 #include "content/public/common/content_client.h" |
| 17 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
| 18 #include "content/public/common/url_constants.h" | 18 #include "content/public/common/url_constants.h" |
| 19 #include "webkit/browser/fileapi/external_mount_points.h" |
| 20 #include "webkit/browser/fileapi/file_system_task_runners.h" |
| 21 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 19 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" | 22 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" |
| 20 #include "webkit/fileapi/external_mount_points.h" | |
| 21 #include "webkit/fileapi/file_permission_policy.h" | 23 #include "webkit/fileapi/file_permission_policy.h" |
| 22 #include "webkit/fileapi/file_system_options.h" | 24 #include "webkit/fileapi/file_system_options.h" |
| 23 #include "webkit/fileapi/file_system_task_runners.h" | |
| 24 #include "webkit/fileapi/local_file_system_operation.h" | |
| 25 #include "webkit/quota/quota_manager.h" | 25 #include "webkit/quota/quota_manager.h" |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 using fileapi::FileSystemOptions; | 31 using fileapi::FileSystemOptions; |
| 32 | 32 |
| 33 FileSystemOptions CreateBrowserFileSystemOptions(bool is_incognito) { | 33 FileSystemOptions CreateBrowserFileSystemOptions(bool is_incognito) { |
| 34 FileSystemOptions::ProfileMode profile_mode = | 34 FileSystemOptions::ProfileMode profile_mode = |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // for the file. (We first need to check if it can already be read not to | 164 // for the file. (We first need to check if it can already be read not to |
| 165 // overwrite existing permissions) | 165 // overwrite existing permissions) |
| 166 if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile( | 166 if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile( |
| 167 process_id, *platform_path)) { | 167 process_id, *platform_path)) { |
| 168 ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile( | 168 ChildProcessSecurityPolicyImpl::GetInstance()->GrantReadFile( |
| 169 process_id, *platform_path); | 169 process_id, *platform_path); |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 } // namespace content | 173 } // namespace content |
| OLD | NEW |