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/extensions/file_manager/private_api_util.h" | 13 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" |
14 #include "chrome/browser/chromeos/file_manager/file_tasks.h" | 14 #include "chrome/browser/chromeos/file_manager/file_tasks.h" |
15 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 15 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
16 #include "chrome/browser/chromeos/file_manager/url_util.h" | 16 #include "chrome/browser/chromeos/file_manager/url_util.h" |
17 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" | 17 #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" | 18 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
19 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" | 19 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" |
20 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 20 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
21 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 21 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
22 #include "chrome/browser/drive/drive_app_registry.h" | |
23 #include "chrome/browser/drive/event_logger.h" | |
24 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/profiles/profile_manager.h" | 23 #include "chrome/browser/profiles/profile_manager.h" |
26 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
27 #include "chrome/browser/signin/signin_manager_factory.h" | 25 #include "chrome/browser/signin/signin_manager_factory.h" |
28 #include "chromeos/chromeos_switches.h" | 26 #include "chromeos/chromeos_switches.h" |
29 #include "chromeos/network/network_handler.h" | 27 #include "chromeos/network/network_handler.h" |
30 #include "chromeos/network/network_state_handler.h" | 28 #include "chromeos/network/network_state_handler.h" |
| 29 #include "components/drive/drive_app_registry.h" |
| 30 #include "components/drive/event_logger.h" |
31 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 31 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
32 #include "components/signin/core/browser/signin_manager.h" | 32 #include "components/signin/core/browser/signin_manager.h" |
33 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
34 #include "google_apis/drive/auth_service.h" | 34 #include "google_apis/drive/auth_service.h" |
35 #include "google_apis/drive/drive_api_url_generator.h" | 35 #include "google_apis/drive/drive_api_url_generator.h" |
36 #include "storage/common/fileapi/file_system_info.h" | 36 #include "storage/common/fileapi/file_system_info.h" |
37 #include "storage/common/fileapi/file_system_util.h" | 37 #include "storage/common/fileapi/file_system_util.h" |
38 #include "url/gurl.h" | 38 #include "url/gurl.h" |
39 | 39 |
40 using content::BrowserThread; | 40 using content::BrowserThread; |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 } | 1077 } |
1078 | 1078 |
1079 const std::string url = | 1079 const std::string url = |
1080 download_url_.Resolve("?access_token=" + access_token).spec(); | 1080 download_url_.Resolve("?access_token=" + access_token).spec(); |
1081 SetResult(new base::StringValue(url)); | 1081 SetResult(new base::StringValue(url)); |
1082 | 1082 |
1083 SendResponse(true); | 1083 SendResponse(true); |
1084 } | 1084 } |
1085 | 1085 |
1086 } // namespace extensions | 1086 } // namespace extensions |
OLD | NEW |