| 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_system/file_system_api.h" | 5 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "content/public/browser/child_process_security_policy.h" | 26 #include "content/public/browser/child_process_security_policy.h" |
| 27 #include "content/public/browser/render_process_host.h" | 27 #include "content/public/browser/render_process_host.h" |
| 28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
| 29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
| 30 #include "content/public/browser/web_contents_view.h" | 30 #include "content/public/browser/web_contents_view.h" |
| 31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
| 32 #include "net/base/mime_util.h" | 32 #include "net/base/mime_util.h" |
| 33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
| 34 #include "ui/shell_dialogs/select_file_dialog.h" | 34 #include "ui/shell_dialogs/select_file_dialog.h" |
| 35 #include "ui/shell_dialogs/selected_file_info.h" | 35 #include "ui/shell_dialogs/selected_file_info.h" |
| 36 #include "webkit/fileapi/external_mount_points.h" | 36 #include "webkit/browser/fileapi/external_mount_points.h" |
| 37 #include "webkit/browser/fileapi/isolated_context.h" |
| 37 #include "webkit/fileapi/file_system_types.h" | 38 #include "webkit/fileapi/file_system_types.h" |
| 38 #include "webkit/fileapi/file_system_util.h" | 39 #include "webkit/fileapi/file_system_util.h" |
| 39 #include "webkit/fileapi/isolated_context.h" | |
| 40 | 40 |
| 41 #if defined(OS_MACOSX) | 41 #if defined(OS_MACOSX) |
| 42 #include <CoreFoundation/CoreFoundation.h> | 42 #include <CoreFoundation/CoreFoundation.h> |
| 43 #include "base/mac/foundation_util.h" | 43 #include "base/mac/foundation_util.h" |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
| 47 #include "chrome/browser/chromeos/drive/file_system_util.h" | 47 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 base::Bind( | 695 base::Bind( |
| 696 &FileSystemChooseEntryFunction::SetInitialPathOnFileThread, this, | 696 &FileSystemChooseEntryFunction::SetInitialPathOnFileThread, this, |
| 697 suggested_name, previous_path), | 697 suggested_name, previous_path), |
| 698 base::Bind( | 698 base::Bind( |
| 699 &FileSystemChooseEntryFunction::ShowPicker, this, file_type_info, | 699 &FileSystemChooseEntryFunction::ShowPicker, this, file_type_info, |
| 700 picker_type, entry_type)); | 700 picker_type, entry_type)); |
| 701 return true; | 701 return true; |
| 702 } | 702 } |
| 703 | 703 |
| 704 } // namespace extensions | 704 } // namespace extensions |
| OLD | NEW |