Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: content/browser/fileapi/browser_file_system_helper.cc

Issue 15442002: Move FileAPI sandboxed filesystem related code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/sandbox_mount_point_provider.h"
19 #include "webkit/fileapi/external_mount_points.h" 20 #include "webkit/fileapi/external_mount_points.h"
20 #include "webkit/fileapi/file_permission_policy.h" 21 #include "webkit/fileapi/file_permission_policy.h"
21 #include "webkit/fileapi/file_system_options.h" 22 #include "webkit/fileapi/file_system_options.h"
22 #include "webkit/fileapi/file_system_task_runners.h" 23 #include "webkit/fileapi/file_system_task_runners.h"
23 #include "webkit/fileapi/local_file_system_operation.h" 24 #include "webkit/fileapi/local_file_system_operation.h"
24 #include "webkit/fileapi/sandbox_mount_point_provider.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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | content/browser/fileapi/fileapi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698