| 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 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" | 4 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" |
| 5 | 5 |
| 6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "content/public/browser/storage_partition.h" | 46 #include "content/public/browser/storage_partition.h" |
| 47 #include "content/public/browser/user_metrics.h" | 47 #include "content/public/browser/user_metrics.h" |
| 48 #include "content/public/browser/web_contents.h" | 48 #include "content/public/browser/web_contents.h" |
| 49 #include "content/public/common/pepper_plugin_info.h" | 49 #include "content/public/common/pepper_plugin_info.h" |
| 50 #include "grit/generated_resources.h" | 50 #include "grit/generated_resources.h" |
| 51 #include "net/base/escape.h" | 51 #include "net/base/escape.h" |
| 52 #include "net/base/net_util.h" | 52 #include "net/base/net_util.h" |
| 53 #include "ui/base/l10n/l10n_util.h" | 53 #include "ui/base/l10n/l10n_util.h" |
| 54 #include "ui/gfx/screen.h" | 54 #include "ui/gfx/screen.h" |
| 55 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | 55 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
| 56 #include "webkit/common/fileapi/file_system_url.h" |
| 57 #include "webkit/common/fileapi/file_system_util.h" |
| 56 #include "webkit/fileapi/file_system_context.h" | 58 #include "webkit/fileapi/file_system_context.h" |
| 57 #include "webkit/fileapi/file_system_operation.h" | 59 #include "webkit/fileapi/file_system_operation.h" |
| 58 #include "webkit/fileapi/file_system_url.h" | |
| 59 #include "webkit/fileapi/file_system_util.h" | |
| 60 #include "webkit/plugins/webplugininfo.h" | 60 #include "webkit/plugins/webplugininfo.h" |
| 61 | 61 |
| 62 using base::DictionaryValue; | 62 using base::DictionaryValue; |
| 63 using base::ListValue; | 63 using base::ListValue; |
| 64 using content::BrowserContext; | 64 using content::BrowserContext; |
| 65 using content::BrowserThread; | 65 using content::BrowserThread; |
| 66 using content::PluginService; | 66 using content::PluginService; |
| 67 using content::UserMetricsAction; | 67 using content::UserMetricsAction; |
| 68 using extensions::Extension; | 68 using extensions::Extension; |
| 69 using file_handler_util::FileTaskExecutor; | 69 using file_handler_util::FileTaskExecutor; |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 // If a bundled plugin is enabled, we should open pdf/swf files in a tab. | 879 // If a bundled plugin is enabled, we should open pdf/swf files in a tab. |
| 880 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension) { | 880 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension) { |
| 881 if (LowerCaseEqualsASCII(file_extension, kPdfExtension)) | 881 if (LowerCaseEqualsASCII(file_extension, kPdfExtension)) |
| 882 return IsPdfPluginEnabled(profile); | 882 return IsPdfPluginEnabled(profile); |
| 883 if (LowerCaseEqualsASCII(file_extension, kSwfExtension)) | 883 if (LowerCaseEqualsASCII(file_extension, kSwfExtension)) |
| 884 return IsFlashPluginEnabled(profile); | 884 return IsFlashPluginEnabled(profile); |
| 885 return false; | 885 return false; |
| 886 } | 886 } |
| 887 | 887 |
| 888 } // namespace file_manager_util | 888 } // namespace file_manager_util |
| OLD | NEW |