| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/plugins/webplugininfo.h" | 5 #include "webkit/plugins/webplugininfo.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 | 9 |
| 10 namespace webkit { | 10 namespace webkit { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 mime_types(), | 60 mime_types(), |
| 61 enabled(USER_ENABLED_POLICY_UNMANAGED), | 61 enabled(USER_ENABLED_POLICY_UNMANAGED), |
| 62 type(PLUGIN_TYPE_NPAPI) { | 62 type(PLUGIN_TYPE_NPAPI) { |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool IsPluginEnabled(const WebPluginInfo& plugin) { | 65 bool IsPluginEnabled(const WebPluginInfo& plugin) { |
| 66 return ((plugin.enabled & WebPluginInfo::POLICY_ENABLED) || | 66 return ((plugin.enabled & WebPluginInfo::POLICY_ENABLED) || |
| 67 plugin.enabled == WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED); | 67 plugin.enabled == WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED); |
| 68 } | 68 } |
| 69 | 69 |
| 70 bool IsPepperPlugin(const WebPluginInfo& plugin) { |
| 71 return ((plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_IN_PROCESS ) || |
| 72 plugin.type == WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS); |
| 73 } |
| 74 |
| 70 } // namespace webkit | 75 } // namespace webkit |
| OLD | NEW |