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/file_manager/fileapi_util.h" | 5 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
6 | 6 |
7 #include "base/files/file.h" | 7 #include "base/files/file.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | |
10 #include "chrome/browser/chromeos/drive/file_system_util.h" | 9 #include "chrome/browser/chromeos/drive/file_system_util.h" |
11 #include "chrome/browser/chromeos/file_manager/app_id.h" | 10 #include "chrome/browser/chromeos/file_manager/app_id.h" |
12 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 11 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
13 #include "chrome/browser/extensions/extension_util.h" | 12 #include "chrome/browser/extensions/extension_util.h" |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "components/drive/file_system_core_util.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/render_frame_host.h" | 16 #include "content/public/browser/render_frame_host.h" |
17 #include "content/public/browser/site_instance.h" | 17 #include "content/public/browser/site_instance.h" |
18 #include "content/public/browser/storage_partition.h" | 18 #include "content/public/browser/storage_partition.h" |
19 #include "content/public/common/file_chooser_file_info.h" | 19 #include "content/public/common/file_chooser_file_info.h" |
20 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
21 #include "google_apis/drive/task_util.h" | 21 #include "google_apis/drive/task_util.h" |
22 #include "net/base/escape.h" | 22 #include "net/base/escape.h" |
23 #include "storage/browser/fileapi/file_system_context.h" | 23 #include "storage/browser/fileapi/file_system_context.h" |
24 #include "storage/browser/fileapi/isolated_context.h" | 24 #include "storage/browser/fileapi/isolated_context.h" |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 const storage::FileSystemURL isolated_url = | 589 const storage::FileSystemURL isolated_url = |
590 context.CreateCrackedFileSystemURL( | 590 context.CreateCrackedFileSystemURL( |
591 origin, | 591 origin, |
592 storage::kFileSystemTypeIsolated, | 592 storage::kFileSystemTypeIsolated, |
593 base::FilePath(isolated_file_system_id).Append(register_name)); | 593 base::FilePath(isolated_file_system_id).Append(register_name)); |
594 return isolated_url; | 594 return isolated_url; |
595 } | 595 } |
596 | 596 |
597 } // namespace util | 597 } // namespace util |
598 } // namespace file_manager | 598 } // namespace file_manager |
OLD | NEW |