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 #include "content/browser/file_system/browser_file_system_helper.h" | 5 #include "content/browser/file_system/browser_file_system_helper.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "content/common/content_switches.h" | |
10 #include "content/browser/browser_thread.h" | 9 #include "content/browser/browser_thread.h" |
| 10 #include "content/public/common/content_switches.h" |
11 #include "webkit/quota/quota_manager.h" | 11 #include "webkit/quota/quota_manager.h" |
12 | 12 |
13 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext( | 13 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext( |
14 const FilePath& profile_path, bool is_incognito, | 14 const FilePath& profile_path, bool is_incognito, |
15 quota::SpecialStoragePolicy* special_storage_policy, | 15 quota::SpecialStoragePolicy* special_storage_policy, |
16 quota::QuotaManagerProxy* quota_manager_proxy) { | 16 quota::QuotaManagerProxy* quota_manager_proxy) { |
17 return new fileapi::FileSystemContext( | 17 return new fileapi::FileSystemContext( |
18 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 18 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
19 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 19 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
20 special_storage_policy, | 20 special_storage_policy, |
21 quota_manager_proxy, | 21 quota_manager_proxy, |
22 profile_path, | 22 profile_path, |
23 is_incognito, | 23 is_incognito, |
24 CommandLine::ForCurrentProcess()->HasSwitch( | 24 CommandLine::ForCurrentProcess()->HasSwitch( |
25 switches::kAllowFileAccessFromFiles), | 25 switches::kAllowFileAccessFromFiles), |
26 NULL); | 26 NULL); |
27 } | 27 } |
OLD | NEW |