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

Side by Side Diff: chrome/browser/plugins/plugin_metadata.cc

Issue 2474713003: Migrate enabled state of plugins into specialized Flash and PDF prefs. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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
OLDNEW
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 4
5 #include "chrome/browser/plugins/plugin_metadata.h" 5 #include "chrome/browser/plugins/plugin_metadata.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/strings/pattern.h" 13 #include "base/strings/pattern.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "content/public/common/webplugininfo.h" 15 #include "content/public/common/webplugininfo.h"
16 16
17 // static 17 // static
18 const char PluginMetadata::kAdobeReaderGroupName[] = "Adobe Reader"; 18 const char PluginMetadata::kAdobeReaderGroupName[] = "Adobe Reader";
19 const char PluginMetadata::kJavaGroupName[] = "Java(TM)"; 19 const char PluginMetadata::kJavaGroupName[] = "Java(TM)";
20 const char PluginMetadata::kQuickTimeGroupName[] = "QuickTime Player"; 20 const char PluginMetadata::kQuickTimeGroupName[] = "QuickTime Player";
21 const char PluginMetadata::kShockwaveGroupName[] = "Adobe Shockwave Player"; 21 const char PluginMetadata::kShockwaveGroupName[] = "Adobe Shockwave Player";
22 const char PluginMetadata::kAdobeFlashPlayerGroupName[] = "Adobe Flash Player";
22 const char PluginMetadata::kRealPlayerGroupName[] = "RealPlayer"; 23 const char PluginMetadata::kRealPlayerGroupName[] = "RealPlayer";
23 const char PluginMetadata::kSilverlightGroupName[] = "Silverlight"; 24 const char PluginMetadata::kSilverlightGroupName[] = "Silverlight";
24 const char PluginMetadata::kWindowsMediaPlayerGroupName[] = 25 const char PluginMetadata::kWindowsMediaPlayerGroupName[] =
25 "Windows Media Player"; 26 "Windows Media Player";
26 const char PluginMetadata::kGoogleTalkGroupName[] = "Google Talk"; 27 const char PluginMetadata::kGoogleTalkGroupName[] = "Google Talk";
27 const char PluginMetadata::kGoogleEarthGroupName[] = "Google Earth"; 28 const char PluginMetadata::kGoogleEarthGroupName[] = "Google Earth";
28 29
29 PluginMetadata::PluginMetadata(const std::string& identifier, 30 PluginMetadata::PluginMetadata(const std::string& identifier,
30 const base::string16& name, 31 const base::string16& name,
31 bool url_for_display, 32 bool url_for_display,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 PluginMetadata* copy = new PluginMetadata(identifier_, 132 PluginMetadata* copy = new PluginMetadata(identifier_,
132 name_, 133 name_,
133 url_for_display_, 134 url_for_display_,
134 plugin_url_, 135 plugin_url_,
135 help_url_, 136 help_url_,
136 group_name_matcher_, 137 group_name_matcher_,
137 language_); 138 language_);
138 copy->versions_ = versions_; 139 copy->versions_ = versions_;
139 return base::WrapUnique(copy); 140 return base::WrapUnique(copy);
140 } 141 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_metadata.h ('k') | chrome/browser/plugins/plugin_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698