OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |