| 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 "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 5 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
| 6 | 6 |
| 7 #include "base/files/file.h" | 7 #include "base/files/file.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/child_process_security_policy.h" | 11 #include "content/public/browser/child_process_security_policy.h" |
| 12 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
| 13 #include "extensions/browser/extension_prefs.h" | 13 #include "extensions/browser/extension_prefs.h" |
| 14 #include "extensions/browser/granted_file_entry.h" | 14 #include "extensions/browser/granted_file_entry.h" |
| 15 #include "extensions/common/permissions/permissions_data.h" | 15 #include "extensions/common/permissions/permissions_data.h" |
| 16 #include "net/base/mime_util.h" | 16 #include "net/base/mime_util.h" |
| 17 #include "storage/browser/fileapi/isolated_context.h" |
| 17 #include "storage/common/fileapi/file_system_mount_option.h" | 18 #include "storage/common/fileapi/file_system_mount_option.h" |
| 18 #include "storage/common/fileapi/file_system_types.h" | 19 #include "storage/common/fileapi/file_system_types.h" |
| 19 #include "webkit/browser/fileapi/isolated_context.h" | |
| 20 | 20 |
| 21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
| 22 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 22 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 | 26 |
| 27 namespace app_file_handler_util { | 27 namespace app_file_handler_util { |
| 28 | 28 |
| 29 const char kInvalidParameters[] = "Invalid parameters"; | 29 const char kInvalidParameters[] = "Invalid parameters"; |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 *error = kInvalidParameters; | 384 *error = kInvalidParameters; |
| 385 return false; | 385 return false; |
| 386 } | 386 } |
| 387 | 387 |
| 388 return true; | 388 return true; |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace app_file_handler_util | 391 } // namespace app_file_handler_util |
| 392 | 392 |
| 393 } // namespace extensions | 393 } // namespace extensions |
| OLD | NEW |