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> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "apps/saved_files_service.h" | 14 #include "apps/saved_files_service.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/linked_ptr.h" | |
21 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
22 #include "base/path_service.h" | 21 #include "base/path_service.h" |
23 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
24 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
25 #include "base/strings/sys_string_conversions.h" | 24 #include "base/strings/sys_string_conversions.h" |
26 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
27 #include "base/value_conversions.h" | 26 #include "base/value_conversions.h" |
28 #include "base/values.h" | 27 #include "base/values.h" |
29 #include "build/build_config.h" | 28 #include "build/build_config.h" |
30 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 29 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); | 1446 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); |
1448 std::vector<api::file_system::Volume> result_volume_list; | 1447 std::vector<api::file_system::Volume> result_volume_list; |
1449 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); | 1448 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); |
1450 | 1449 |
1451 return RespondNow(ArgumentList( | 1450 return RespondNow(ArgumentList( |
1452 api::file_system::GetVolumeList::Results::Create(result_volume_list))); | 1451 api::file_system::GetVolumeList::Results::Create(result_volume_list))); |
1453 } | 1452 } |
1454 #endif | 1453 #endif |
1455 | 1454 |
1456 } // namespace extensions | 1455 } // namespace extensions |
OLD | NEW |