OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/open_util.h" | 5 #include "chrome/browser/chromeos/file_manager/open_util.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/chromeos/drive/file_system_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_util.h" |
16 #include "chrome/browser/chromeos/file_manager/app_id.h" | 16 #include "chrome/browser/chromeos/file_manager/app_id.h" |
17 #include "chrome/browser/chromeos/file_manager/file_tasks.h" | 17 #include "chrome/browser/chromeos/file_manager/file_tasks.h" |
18 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 18 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
19 #include "chrome/browser/chromeos/file_manager/path_util.h" | 19 #include "chrome/browser/chromeos/file_manager/path_util.h" |
20 #include "chrome/browser/chromeos/file_manager/url_util.h" | 20 #include "chrome/browser/chromeos/file_manager/url_util.h" |
21 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/extensions/api/file_handlers/directory_util.h" |
| 22 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" |
22 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/user_metrics.h" | 24 #include "content/public/browser/user_metrics.h" |
24 #include "extensions/browser/api/file_handlers/directory_util.h" | |
25 #include "extensions/browser/api/file_handlers/mime_util.h" | |
26 #include "extensions/browser/entry_info.h" | 25 #include "extensions/browser/entry_info.h" |
27 #include "storage/browser/fileapi/file_system_backend.h" | 26 #include "storage/browser/fileapi/file_system_backend.h" |
28 #include "storage/browser/fileapi/file_system_context.h" | 27 #include "storage/browser/fileapi/file_system_context.h" |
29 #include "storage/browser/fileapi/file_system_operation_runner.h" | 28 #include "storage/browser/fileapi/file_system_operation_runner.h" |
30 #include "storage/browser/fileapi/file_system_url.h" | 29 #include "storage/browser/fileapi/file_system_url.h" |
31 | 30 |
32 using content::BrowserThread; | 31 using content::BrowserThread; |
33 using storage::FileSystemURL; | 32 using storage::FileSystemURL; |
34 | 33 |
35 namespace file_manager { | 34 namespace file_manager { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 OpenFileManagerWithInternalActionId(profile, url, "select"); | 204 OpenFileManagerWithInternalActionId(profile, url, "select"); |
206 callback.Run(platform_util::OPEN_SUCCEEDED); | 205 callback.Run(platform_util::OPEN_SUCCEEDED); |
207 } | 206 } |
208 | 207 |
209 void DisableShellOperationsForTesting() { | 208 void DisableShellOperationsForTesting() { |
210 shell_operations_allowed = false; | 209 shell_operations_allowed = false; |
211 } | 210 } |
212 | 211 |
213 } // namespace util | 212 } // namespace util |
214 } // namespace file_manager | 213 } // namespace file_manager |
OLD | NEW |