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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "ui/shell_dialogs/select_file_dialog.h" | 59 #include "ui/shell_dialogs/select_file_dialog.h" |
60 #include "ui/shell_dialogs/selected_file_info.h" | 60 #include "ui/shell_dialogs/selected_file_info.h" |
61 | 61 |
62 #if defined(OS_MACOSX) | 62 #if defined(OS_MACOSX) |
63 #include <CoreFoundation/CoreFoundation.h> | 63 #include <CoreFoundation/CoreFoundation.h> |
64 #include "base/mac/foundation_util.h" | 64 #include "base/mac/foundation_util.h" |
65 #endif | 65 #endif |
66 | 66 |
67 #if defined(OS_CHROMEOS) | 67 #if defined(OS_CHROMEOS) |
68 #include "base/strings/string16.h" | 68 #include "base/strings/string16.h" |
69 #include "base/thread_task_runner_handle.h" | 69 #include "base/threading/thread_task_runner_handle.h" |
70 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 70 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
71 #include "chrome/browser/chromeos/file_manager/app_id.h" | 71 #include "chrome/browser/chromeos/file_manager/app_id.h" |
72 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 72 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
73 #include "chrome/browser/extensions/api/file_system/request_file_system_dialog_v
iew.h" | 73 #include "chrome/browser/extensions/api/file_system/request_file_system_dialog_v
iew.h" |
74 #include "chrome/browser/extensions/api/file_system/request_file_system_notifica
tion.h" | 74 #include "chrome/browser/extensions/api/file_system/request_file_system_notifica
tion.h" |
75 #include "chrome/browser/ui/simple_message_box.h" | 75 #include "chrome/browser/ui/simple_message_box.h" |
76 #include "components/prefs/testing_pref_service.h" | 76 #include "components/prefs/testing_pref_service.h" |
77 #include "components/user_manager/user_manager.h" | 77 #include "components/user_manager/user_manager.h" |
78 #include "extensions/browser/event_router.h" | 78 #include "extensions/browser/event_router.h" |
79 #include "extensions/browser/extension_registry.h" | 79 #include "extensions/browser/extension_registry.h" |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); | 1450 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); |
1451 std::vector<api::file_system::Volume> result_volume_list; | 1451 std::vector<api::file_system::Volume> result_volume_list; |
1452 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); | 1452 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); |
1453 | 1453 |
1454 return RespondNow(ArgumentList( | 1454 return RespondNow(ArgumentList( |
1455 api::file_system::GetVolumeList::Results::Create(result_volume_list))); | 1455 api::file_system::GetVolumeList::Results::Create(result_volume_list))); |
1456 } | 1456 } |
1457 #endif | 1457 #endif |
1458 | 1458 |
1459 } // namespace extensions | 1459 } // namespace extensions |
OLD | NEW |