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 <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include <CoreFoundation/CoreFoundation.h> | 64 #include <CoreFoundation/CoreFoundation.h> |
65 #include "base/mac/foundation_util.h" | 65 #include "base/mac/foundation_util.h" |
66 #endif | 66 #endif |
67 | 67 |
68 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
69 #include "base/strings/string16.h" | 69 #include "base/strings/string16.h" |
70 #include "base/threading/thread_task_runner_handle.h" | 70 #include "base/threading/thread_task_runner_handle.h" |
71 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 71 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
72 #include "chrome/browser/chromeos/file_manager/app_id.h" | 72 #include "chrome/browser/chromeos/file_manager/app_id.h" |
73 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 73 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
74 #include "chrome/browser/extensions/api/file_system/request_file_system_dialog_v
iew.h" | |
75 #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" |
76 #include "chrome/browser/ui/simple_message_box.h" | 75 #include "chrome/browser/ui/simple_message_box.h" |
| 76 #include "chrome/browser/ui/views/extensions/request_file_system_dialog_view.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" |
80 #include "extensions/common/constants.h" | 80 #include "extensions/common/constants.h" |
81 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" | 81 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
82 #include "url/url_constants.h" | 82 #include "url/url_constants.h" |
83 #endif | 83 #endif |
84 | 84 |
85 using apps::SavedFileEntry; | 85 using apps::SavedFileEntry; |
86 using apps::SavedFilesService; | 86 using apps::SavedFilesService; |
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); | 1421 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); |
1422 std::vector<api::file_system::Volume> result_volume_list; | 1422 std::vector<api::file_system::Volume> result_volume_list; |
1423 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); | 1423 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); |
1424 | 1424 |
1425 return RespondNow(ArgumentList( | 1425 return RespondNow(ArgumentList( |
1426 api::file_system::GetVolumeList::Results::Create(result_volume_list))); | 1426 api::file_system::GetVolumeList::Results::Create(result_volume_list))); |
1427 } | 1427 } |
1428 #endif | 1428 #endif |
1429 | 1429 |
1430 } // namespace extensions | 1430 } // namespace extensions |
OLD | NEW |