| 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/extensions/file_manager/file_browser_private_a
pi.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" |
| 6 | 6 |
| 7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
| 8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #include <utime.h> | 10 #include <utime.h> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "googleurl/src/gurl.h" | 69 #include "googleurl/src/gurl.h" |
| 70 #include "grit/app_locale_settings.h" | 70 #include "grit/app_locale_settings.h" |
| 71 #include "grit/generated_resources.h" | 71 #include "grit/generated_resources.h" |
| 72 #include "grit/platform_locale_settings.h" | 72 #include "grit/platform_locale_settings.h" |
| 73 #include "net/base/escape.h" | 73 #include "net/base/escape.h" |
| 74 #include "net/base/mime_util.h" | 74 #include "net/base/mime_util.h" |
| 75 #include "net/base/network_change_notifier.h" | 75 #include "net/base/network_change_notifier.h" |
| 76 #include "ui/base/l10n/l10n_util.h" | 76 #include "ui/base/l10n/l10n_util.h" |
| 77 #include "ui/shell_dialogs/selected_file_info.h" | 77 #include "ui/shell_dialogs/selected_file_info.h" |
| 78 #include "ui/webui/web_ui_util.h" | 78 #include "ui/webui/web_ui_util.h" |
| 79 #include "webkit/browser/fileapi/file_system_context.h" |
| 80 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 81 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 79 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" | 82 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" |
| 80 #include "webkit/fileapi/file_system_context.h" | |
| 81 #include "webkit/fileapi/file_system_file_util.h" | |
| 82 #include "webkit/fileapi/file_system_operation_context.h" | |
| 83 #include "webkit/fileapi/file_system_types.h" | 83 #include "webkit/fileapi/file_system_types.h" |
| 84 #include "webkit/fileapi/file_system_url.h" | 84 #include "webkit/fileapi/file_system_url.h" |
| 85 #include "webkit/fileapi/file_system_util.h" | 85 #include "webkit/fileapi/file_system_util.h" |
| 86 | 86 |
| 87 using extensions::app_file_handler_util::FindFileHandlersForFiles; | 87 using extensions::app_file_handler_util::FindFileHandlersForFiles; |
| 88 using extensions::app_file_handler_util::PathAndMimeTypeSet; | 88 using extensions::app_file_handler_util::PathAndMimeTypeSet; |
| 89 using chromeos::disks::DiskMountManager; | 89 using chromeos::disks::DiskMountManager; |
| 90 using content::BrowserContext; | 90 using content::BrowserContext; |
| 91 using content::BrowserThread; | 91 using content::BrowserThread; |
| 92 using content::ChildProcessSecurityPolicy; | 92 using content::ChildProcessSecurityPolicy; |
| (...skipping 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3153 OpenNewWindowFunction::OpenNewWindowFunction() {} | 3153 OpenNewWindowFunction::OpenNewWindowFunction() {} |
| 3154 | 3154 |
| 3155 OpenNewWindowFunction::~OpenNewWindowFunction() {} | 3155 OpenNewWindowFunction::~OpenNewWindowFunction() {} |
| 3156 | 3156 |
| 3157 bool OpenNewWindowFunction::RunImpl() { | 3157 bool OpenNewWindowFunction::RunImpl() { |
| 3158 std::string url; | 3158 std::string url; |
| 3159 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); | 3159 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); |
| 3160 file_manager_util::OpenNewWindow(profile_, GURL(url)); | 3160 file_manager_util::OpenNewWindow(profile_, GURL(url)); |
| 3161 return true; | 3161 return true; |
| 3162 } | 3162 } |
| OLD | NEW |