| 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 "apps/saved_files_service.h" | 7 #include "apps/saved_files_service.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "content/public/browser/render_view_host.h" | 29 #include "content/public/browser/render_view_host.h" |
| 30 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
| 31 #include "content/public/browser/web_contents_view.h" | 31 #include "content/public/browser/web_contents_view.h" |
| 32 #include "grit/generated_resources.h" | 32 #include "grit/generated_resources.h" |
| 33 #include "net/base/mime_util.h" | 33 #include "net/base/mime_util.h" |
| 34 #include "ui/base/l10n/l10n_util.h" | 34 #include "ui/base/l10n/l10n_util.h" |
| 35 #include "ui/shell_dialogs/select_file_dialog.h" | 35 #include "ui/shell_dialogs/select_file_dialog.h" |
| 36 #include "ui/shell_dialogs/selected_file_info.h" | 36 #include "ui/shell_dialogs/selected_file_info.h" |
| 37 #include "webkit/browser/fileapi/external_mount_points.h" | 37 #include "webkit/browser/fileapi/external_mount_points.h" |
| 38 #include "webkit/browser/fileapi/isolated_context.h" | 38 #include "webkit/browser/fileapi/isolated_context.h" |
| 39 #include "webkit/fileapi/file_system_types.h" | 39 #include "webkit/common/fileapi/file_system_types.h" |
| 40 #include "webkit/fileapi/file_system_util.h" | 40 #include "webkit/common/fileapi/file_system_util.h" |
| 41 | 41 |
| 42 #if defined(OS_MACOSX) | 42 #if defined(OS_MACOSX) |
| 43 #include <CoreFoundation/CoreFoundation.h> | 43 #include <CoreFoundation/CoreFoundation.h> |
| 44 #include "base/mac/foundation_util.h" | 44 #include "base/mac/foundation_util.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
| 48 #include "chrome/browser/chromeos/drive/file_system_util.h" | 48 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 49 #endif | 49 #endif |
| 50 | 50 |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 // ID that was passed to restoreEntry. | 798 // ID that was passed to restoreEntry. |
| 799 RegisterFileSystemAndSendResponseWithIdOverride( | 799 RegisterFileSystemAndSendResponseWithIdOverride( |
| 800 file_entry->path, | 800 file_entry->path, |
| 801 file_entry->writable ? WRITABLE : READ_ONLY, | 801 file_entry->writable ? WRITABLE : READ_ONLY, |
| 802 file_entry->id); | 802 file_entry->id); |
| 803 } | 803 } |
| 804 return true; | 804 return true; |
| 805 } | 805 } |
| 806 | 806 |
| 807 } // namespace extensions | 807 } // namespace extensions |
| OLD | NEW |