| 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/extensions/api/file_handlers/directory_util.h" | 21 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" | |
| 23 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
| 24 #include "content/public/browser/user_metrics.h" | 23 #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" |
| 25 #include "extensions/browser/entry_info.h" | 26 #include "extensions/browser/entry_info.h" |
| 26 #include "storage/browser/fileapi/file_system_backend.h" | 27 #include "storage/browser/fileapi/file_system_backend.h" |
| 27 #include "storage/browser/fileapi/file_system_context.h" | 28 #include "storage/browser/fileapi/file_system_context.h" |
| 28 #include "storage/browser/fileapi/file_system_operation_runner.h" | 29 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 29 #include "storage/browser/fileapi/file_system_url.h" | 30 #include "storage/browser/fileapi/file_system_url.h" |
| 30 | 31 |
| 31 using content::BrowserThread; | 32 using content::BrowserThread; |
| 32 using storage::FileSystemURL; | 33 using storage::FileSystemURL; |
| 33 | 34 |
| 34 namespace file_manager { | 35 namespace file_manager { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 OpenFileManagerWithInternalActionId(profile, url, "select"); | 204 OpenFileManagerWithInternalActionId(profile, url, "select"); |
| 204 callback.Run(platform_util::OPEN_SUCCEEDED); | 205 callback.Run(platform_util::OPEN_SUCCEEDED); |
| 205 } | 206 } |
| 206 | 207 |
| 207 void DisableShellOperationsForTesting() { | 208 void DisableShellOperationsForTesting() { |
| 208 shell_operations_allowed = false; | 209 shell_operations_allowed = false; |
| 209 } | 210 } |
| 210 | 211 |
| 211 } // namespace util | 212 } // namespace util |
| 212 } // namespace file_manager | 213 } // namespace file_manager |
| OLD | NEW |