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/chromeos/drive/file_system_util.h" | 8 #include "chrome/browser/chromeos/drive/file_system_util.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/extensions/extension_system.h" | |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
14 #include "content/public/browser/site_instance.h" | 13 #include "content/public/browser/site_instance.h" |
15 #include "content/public/browser/storage_partition.h" | 14 #include "content/public/browser/storage_partition.h" |
| 15 #include "extensions/browser/extension_system.h" |
16 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 #include "webkit/browser/fileapi/file_system_context.h" | 18 #include "webkit/browser/fileapi/file_system_context.h" |
19 #include "webkit/common/fileapi/file_system_util.h" | 19 #include "webkit/common/fileapi/file_system_util.h" |
20 | 20 |
21 namespace file_manager { | 21 namespace file_manager { |
22 namespace util { | 22 namespace util { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Find if this file path is managed by the external backend. | 109 // Find if this file path is managed by the external backend. |
110 if (!backend->GetVirtualPath(absolute_path, virtual_path)) | 110 if (!backend->GetVirtualPath(absolute_path, virtual_path)) |
111 return false; | 111 return false; |
112 | 112 |
113 return true; | 113 return true; |
114 } | 114 } |
115 | 115 |
116 } // namespace util | 116 } // namespace util |
117 } // namespace file_manager | 117 } // namespace file_manager |
OLD | NEW |