| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/file_manager/private_api_file_syste
m.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste
m.h" |
| 6 | 6 |
| 7 #include <sys/statvfs.h> | 7 #include <sys/statvfs.h> |
| 8 | 8 |
| 9 #include "base/posix/eintr_wrapper.h" | 9 #include "base/posix/eintr_wrapper.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 23 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
| 26 #include "chrome/common/extensions/api/file_browser_private.h" | 26 #include "chrome/common/extensions/api/file_browser_private.h" |
| 27 #include "chrome/common/extensions/api/file_browser_private_internal.h" | 27 #include "chrome/common/extensions/api/file_browser_private_internal.h" |
| 28 #include "chromeos/disks/disk_mount_manager.h" | 28 #include "chromeos/disks/disk_mount_manager.h" |
| 29 #include "content/public/browser/child_process_security_policy.h" | 29 #include "content/public/browser/child_process_security_policy.h" |
| 30 #include "content/public/browser/render_process_host.h" | 30 #include "content/public/browser/render_process_host.h" |
| 31 #include "content/public/browser/render_view_host.h" | 31 #include "content/public/browser/render_view_host.h" |
| 32 #include "net/base/escape.h" | 32 #include "net/base/escape.h" |
| 33 #include "storage/common/fileapi/file_system_info.h" |
| 34 #include "storage/common/fileapi/file_system_types.h" |
| 35 #include "storage/common/fileapi/file_system_util.h" |
| 33 #include "webkit/browser/fileapi/file_system_context.h" | 36 #include "webkit/browser/fileapi/file_system_context.h" |
| 34 #include "webkit/browser/fileapi/file_system_file_util.h" | 37 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 35 #include "webkit/browser/fileapi/file_system_operation_context.h" | 38 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 36 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 39 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
| 37 #include "webkit/browser/fileapi/file_system_url.h" | 40 #include "webkit/browser/fileapi/file_system_url.h" |
| 38 #include "webkit/common/fileapi/file_system_info.h" | |
| 39 #include "webkit/common/fileapi/file_system_types.h" | |
| 40 #include "webkit/common/fileapi/file_system_util.h" | |
| 41 | 41 |
| 42 using chromeos::disks::DiskMountManager; | 42 using chromeos::disks::DiskMountManager; |
| 43 using content::BrowserThread; | 43 using content::BrowserThread; |
| 44 using content::ChildProcessSecurityPolicy; | 44 using content::ChildProcessSecurityPolicy; |
| 45 using file_manager::util::EntryDefinition; | 45 using file_manager::util::EntryDefinition; |
| 46 using file_manager::util::FileDefinition; | 46 using file_manager::util::FileDefinition; |
| 47 using storage::FileSystemURL; | 47 using storage::FileSystemURL; |
| 48 | 48 |
| 49 namespace extensions { | 49 namespace extensions { |
| 50 namespace { | 50 namespace { |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 "/" + entry_definition_list->at(i).full_path.AsUTF8Unsafe(); | 673 "/" + entry_definition_list->at(i).full_path.AsUTF8Unsafe(); |
| 674 entry->file_is_directory = entry_definition_list->at(i).is_directory; | 674 entry->file_is_directory = entry_definition_list->at(i).is_directory; |
| 675 entries.push_back(entry); | 675 entries.push_back(entry); |
| 676 } | 676 } |
| 677 | 677 |
| 678 results_ = extensions::api::file_browser_private_internal:: | 678 results_ = extensions::api::file_browser_private_internal:: |
| 679 ResolveIsolatedEntries::Results::Create(entries); | 679 ResolveIsolatedEntries::Results::Create(entries); |
| 680 SendResponse(true); | 680 SendResponse(true); |
| 681 } | 681 } |
| 682 } // namespace extensions | 682 } // namespace extensions |
| OLD | NEW |