Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: webkit/plugins/npapi/plugin_group.cc

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/npapi/plugin_group.h ('k') | webkit/plugins/npapi/plugin_group_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_group.h ('k') | webkit/plugins/npapi/plugin_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698