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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "webkit/plugins/npapi/plugin_group.h" | 7 #include "webkit/plugins/npapi/plugin_group.h" |
8 | 8 |
9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "base/version.h" | 14 #include "base/version.h" |
15 #include "webkit/plugins/npapi/plugin_list.h" | 15 #include "webkit/plugins/npapi/plugin_list.h" |
16 #include "webkit/plugins/npapi/webplugininfo.h" | 16 #include "webkit/plugins/webplugininfo.h" |
17 | 17 |
18 namespace webkit { | 18 namespace webkit { |
19 namespace npapi { | 19 namespace npapi { |
20 | 20 |
21 const char* PluginGroup::kAdobeReaderGroupName = "Adobe Acrobat"; | 21 const char* PluginGroup::kAdobeReaderGroupName = "Adobe Acrobat"; |
22 const char* PluginGroup::kAdobeReaderUpdateURL = "http://get.adobe.com/reader/"; | 22 const char* PluginGroup::kAdobeReaderUpdateURL = "http://get.adobe.com/reader/"; |
23 const char* PluginGroup::kJavaGroupName = "Java"; | 23 const char* PluginGroup::kJavaGroupName = "Java"; |
24 const char* PluginGroup::kQuickTimeGroupName = "QuickTime"; | 24 const char* PluginGroup::kQuickTimeGroupName = "QuickTime"; |
25 const char* PluginGroup::kShockwaveGroupName = "Shockwave"; | 25 const char* PluginGroup::kShockwaveGroupName = "Shockwave"; |
26 const char* PluginGroup::kRealPlayerGroupName = "RealPlayer"; | 26 const char* PluginGroup::kRealPlayerGroupName = "RealPlayer"; |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 bool PluginGroup::Disable(WebPluginInfo* plugin, int new_reason) { | 631 bool PluginGroup::Disable(WebPluginInfo* plugin, int new_reason) { |
632 DCHECK(new_reason == WebPluginInfo::USER_DISABLED || | 632 DCHECK(new_reason == WebPluginInfo::USER_DISABLED || |
633 new_reason == WebPluginInfo::POLICY_DISABLED || | 633 new_reason == WebPluginInfo::POLICY_DISABLED || |
634 new_reason == WebPluginInfo::USER_DISABLED_POLICY_DISABLED || | 634 new_reason == WebPluginInfo::USER_DISABLED_POLICY_DISABLED || |
635 new_reason == WebPluginInfo::POLICY_UNMANAGED); | 635 new_reason == WebPluginInfo::POLICY_UNMANAGED); |
636 return SetPluginState(plugin, new_reason, IsPluginEnabled(*plugin)); | 636 return SetPluginState(plugin, new_reason, IsPluginEnabled(*plugin)); |
637 } | 637 } |
638 | 638 |
639 } // namespace npapi | 639 } // namespace npapi |
640 } // namespace webkit | 640 } // namespace webkit |
OLD | NEW |