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

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

Issue 6259008: When we detect a PDF with an unsupported feature, ask the user if they want t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/ppapi/mock_plugin_delegate.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/npapi/plugin_group.h" 5 #include "webkit/plugins/npapi/plugin_group.h"
6 6
7 #include "base/linked_ptr.h" 7 #include "base/linked_ptr.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "base/version.h" 12 #include "base/version.h"
13 #include "webkit/plugins/npapi/plugin_list.h" 13 #include "webkit/plugins/npapi/plugin_list.h"
14 #include "webkit/plugins/npapi/webplugininfo.h" 14 #include "webkit/plugins/npapi/webplugininfo.h"
15 15
16 namespace webkit { 16 namespace webkit {
17 namespace npapi { 17 namespace npapi {
18 18
19 const char* PluginGroup::kAdobeReaderGroupName = "Adobe Reader"; 19 const char* PluginGroup::kAdobeReaderGroupName = "Adobe Reader";
20 const char* PluginGroup::kAdobeReaderUpdateURL = "http://get.adobe.com/reader/";
20 21
21 /*static*/ 22 /*static*/
22 std::set<string16>* PluginGroup::policy_disabled_plugin_patterns_; 23 std::set<string16>* PluginGroup::policy_disabled_plugin_patterns_;
23 24
24 /*static*/ 25 /*static*/
25 void PluginGroup::SetPolicyDisabledPluginPatterns( 26 void PluginGroup::SetPolicyDisabledPluginPatterns(
26 const std::set<string16>& set) { 27 const std::set<string16>& set) {
27 if (!policy_disabled_plugin_patterns_) 28 if (!policy_disabled_plugin_patterns_)
28 policy_disabled_plugin_patterns_ = new std::set<string16>(set); 29 policy_disabled_plugin_patterns_ = new std::set<string16>(set);
29 else 30 else
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } else { 405 } else {
405 it->enabled = false; 406 it->enabled = false;
406 PluginList::Singleton()->DisablePlugin(it->path); 407 PluginList::Singleton()->DisablePlugin(it->path);
407 } 408 }
408 } 409 }
409 enabled_ = enabled_plugin_exists; 410 enabled_ = enabled_plugin_exists;
410 } 411 }
411 412
412 } // namespace npapi 413 } // namespace npapi
413 } // namespace webkit 414 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_group.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698