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/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #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" |
15 #include "extensions/browser/extension_system.h" | 14 #include "extensions/browser/extension_system.h" |
16 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
17 #include "url/gurl.h" | 16 #include "url/gurl.h" |
18 #include "webkit/browser/fileapi/file_system_context.h" | 17 #include "webkit/browser/fileapi/file_system_context.h" |
19 #include "webkit/common/fileapi/file_system_util.h" | 18 #include "webkit/common/fileapi/file_system_util.h" |
20 | 19 |
21 namespace file_manager { | 20 namespace file_manager { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 117 |
119 // Find if this file path is managed by the external backend. | 118 // Find if this file path is managed by the external backend. |
120 if (!backend->GetVirtualPath(absolute_path, virtual_path)) | 119 if (!backend->GetVirtualPath(absolute_path, virtual_path)) |
121 return false; | 120 return false; |
122 | 121 |
123 return true; | 122 return true; |
124 } | 123 } |
125 | 124 |
126 } // namespace util | 125 } // namespace util |
127 } // namespace file_manager | 126 } // namespace file_manager |
OLD | NEW |