| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "googleurl/src/gurl.h" | 73 #include "googleurl/src/gurl.h" |
| 74 #include "grit/app_locale_settings.h" | 74 #include "grit/app_locale_settings.h" |
| 75 #include "grit/generated_resources.h" | 75 #include "grit/generated_resources.h" |
| 76 #include "grit/platform_locale_settings.h" | 76 #include "grit/platform_locale_settings.h" |
| 77 #include "net/base/escape.h" | 77 #include "net/base/escape.h" |
| 78 #include "net/base/mime_util.h" | 78 #include "net/base/mime_util.h" |
| 79 #include "net/base/network_change_notifier.h" | 79 #include "net/base/network_change_notifier.h" |
| 80 #include "ui/base/l10n/l10n_util.h" | 80 #include "ui/base/l10n/l10n_util.h" |
| 81 #include "ui/shell_dialogs/selected_file_info.h" | 81 #include "ui/shell_dialogs/selected_file_info.h" |
| 82 #include "ui/webui/web_ui_util.h" | 82 #include "ui/webui/web_ui_util.h" |
| 83 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 83 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" | 84 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" |
| 84 #include "webkit/fileapi/file_system_context.h" | 85 #include "webkit/fileapi/file_system_context.h" |
| 85 #include "webkit/fileapi/file_system_file_util.h" | |
| 86 #include "webkit/fileapi/file_system_operation_context.h" | 86 #include "webkit/fileapi/file_system_operation_context.h" |
| 87 #include "webkit/fileapi/file_system_types.h" | 87 #include "webkit/fileapi/file_system_types.h" |
| 88 #include "webkit/fileapi/file_system_url.h" | 88 #include "webkit/fileapi/file_system_url.h" |
| 89 #include "webkit/fileapi/file_system_util.h" | 89 #include "webkit/fileapi/file_system_util.h" |
| 90 | 90 |
| 91 using extensions::app_file_handler_util::FindFileHandlersForFiles; | 91 using extensions::app_file_handler_util::FindFileHandlersForFiles; |
| 92 using extensions::app_file_handler_util::PathAndMimeTypeSet; | 92 using extensions::app_file_handler_util::PathAndMimeTypeSet; |
| 93 using chromeos::disks::DiskMountManager; | 93 using chromeos::disks::DiskMountManager; |
| 94 using content::BrowserContext; | 94 using content::BrowserContext; |
| 95 using content::BrowserThread; | 95 using content::BrowserThread; |
| (...skipping 3097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3193 OpenNewWindowFunction::OpenNewWindowFunction() {} | 3193 OpenNewWindowFunction::OpenNewWindowFunction() {} |
| 3194 | 3194 |
| 3195 OpenNewWindowFunction::~OpenNewWindowFunction() {} | 3195 OpenNewWindowFunction::~OpenNewWindowFunction() {} |
| 3196 | 3196 |
| 3197 bool OpenNewWindowFunction::RunImpl() { | 3197 bool OpenNewWindowFunction::RunImpl() { |
| 3198 std::string url; | 3198 std::string url; |
| 3199 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); | 3199 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); |
| 3200 file_manager_util::OpenNewWindow(profile_, GURL(url)); | 3200 file_manager_util::OpenNewWindow(profile_, GURL(url)); |
| 3201 return true; | 3201 return true; |
| 3202 } | 3202 } |
| OLD | NEW |