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_drive.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 12 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| 13 #include "chrome/browser/chromeos/drive/file_system_util.h" |
13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" | 14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" |
14 #include "chrome/browser/chromeos/file_manager/file_tasks.h" | 15 #include "chrome/browser/chromeos/file_manager/file_tasks.h" |
15 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 16 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
16 #include "chrome/browser/chromeos/file_manager/url_util.h" | 17 #include "chrome/browser/chromeos/file_manager/url_util.h" |
17 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" | 18 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" |
18 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 19 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
19 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" | 20 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" |
20 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 21 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
21 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 22 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
22 #include "chrome/browser/drive/drive_app_registry.h" | 23 #include "chrome/browser/drive/drive_app_registry.h" |
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 } | 1078 } |
1078 | 1079 |
1079 const std::string url = | 1080 const std::string url = |
1080 download_url_.Resolve("?access_token=" + access_token).spec(); | 1081 download_url_.Resolve("?access_token=" + access_token).spec(); |
1081 SetResult(new base::StringValue(url)); | 1082 SetResult(new base::StringValue(url)); |
1082 | 1083 |
1083 SendResponse(true); | 1084 SendResponse(true); |
1084 } | 1085 } |
1085 | 1086 |
1086 } // namespace extensions | 1087 } // namespace extensions |
OLD | NEW |