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_path.h" | 7 #include "base/files/file_path.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_system.h" | |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
13 #include "content/public/browser/site_instance.h" | 12 #include "content/public/browser/site_instance.h" |
14 #include "content/public/browser/storage_partition.h" | 13 #include "content/public/browser/storage_partition.h" |
| 14 #include "extensions/browser/extension_system.h" |
15 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 #include "webkit/browser/fileapi/file_system_context.h" | 17 #include "webkit/browser/fileapi/file_system_context.h" |
18 #include "webkit/common/fileapi/file_system_util.h" | 18 #include "webkit/common/fileapi/file_system_util.h" |
19 | 19 |
20 namespace file_manager { | 20 namespace file_manager { |
21 namespace util { | 21 namespace util { |
22 | 22 |
23 fileapi::FileSystemContext* GetFileSystemContextForExtensionId( | 23 fileapi::FileSystemContext* GetFileSystemContextForExtensionId( |
24 Profile* profile, | 24 Profile* profile, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // Find if this file path is managed by the external backend. | 88 // Find if this file path is managed by the external backend. |
89 if (!backend->GetVirtualPath(absolute_path, virtual_path)) | 89 if (!backend->GetVirtualPath(absolute_path, virtual_path)) |
90 return false; | 90 return false; |
91 | 91 |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 } // namespace util | 95 } // namespace util |
96 } // namespace file_manager | 96 } // namespace file_manager |
OLD | NEW |