| 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/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/json/json_file_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "content/public/browser/plugin_service.h" | 47 #include "content/public/browser/plugin_service.h" |
| 48 #include "content/public/browser/storage_partition.h" | 48 #include "content/public/browser/storage_partition.h" |
| 49 #include "content/public/browser/user_metrics.h" | 49 #include "content/public/browser/user_metrics.h" |
| 50 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" |
| 51 #include "content/public/common/pepper_plugin_info.h" | 51 #include "content/public/common/pepper_plugin_info.h" |
| 52 #include "grit/generated_resources.h" | 52 #include "grit/generated_resources.h" |
| 53 #include "net/base/escape.h" | 53 #include "net/base/escape.h" |
| 54 #include "net/base/net_util.h" | 54 #include "net/base/net_util.h" |
| 55 #include "ui/base/l10n/l10n_util.h" | 55 #include "ui/base/l10n/l10n_util.h" |
| 56 #include "ui/gfx/screen.h" | 56 #include "ui/gfx/screen.h" |
| 57 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | |
| 58 #include "webkit/fileapi/file_system_context.h" | 57 #include "webkit/fileapi/file_system_context.h" |
| 58 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 59 #include "webkit/fileapi/file_system_operation.h" | 59 #include "webkit/fileapi/file_system_operation.h" |
| 60 #include "webkit/fileapi/file_system_url.h" | 60 #include "webkit/fileapi/file_system_url.h" |
| 61 #include "webkit/fileapi/file_system_util.h" | 61 #include "webkit/fileapi/file_system_util.h" |
| 62 #include "webkit/plugins/webplugininfo.h" | 62 #include "webkit/plugins/webplugininfo.h" |
| 63 | 63 |
| 64 using base::DictionaryValue; | 64 using base::DictionaryValue; |
| 65 using base::ListValue; | 65 using base::ListValue; |
| 66 using content::BrowserContext; | 66 using content::BrowserContext; |
| 67 using content::BrowserThread; | 67 using content::BrowserThread; |
| 68 using content::PluginService; | 68 using content::PluginService; |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 // If a bundled plugin is enabled, we should open pdf/swf files in a tab. | 925 // If a bundled plugin is enabled, we should open pdf/swf files in a tab. |
| 926 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension) { | 926 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension) { |
| 927 if (LowerCaseEqualsASCII(file_extension, kPdfExtension)) | 927 if (LowerCaseEqualsASCII(file_extension, kPdfExtension)) |
| 928 return IsPdfPluginEnabled(profile); | 928 return IsPdfPluginEnabled(profile); |
| 929 if (LowerCaseEqualsASCII(file_extension, kSwfExtension)) | 929 if (LowerCaseEqualsASCII(file_extension, kSwfExtension)) |
| 930 return IsFlashPluginEnabled(profile); | 930 return IsFlashPluginEnabled(profile); |
| 931 return false; | 931 return false; |
| 932 } | 932 } |
| 933 | 933 |
| 934 } // namespace file_manager_util | 934 } // namespace file_manager_util |
| OLD | NEW |