| OLD | NEW |
| 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/glue/plugins/plugin_list.h" | 5 #include "webkit/glue/plugins/plugin_list.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 info->mime_types.push_back(mime_type); | 134 info->mime_types.push_back(mime_type); |
| 135 } | 135 } |
| 136 | 136 |
| 137 return true; | 137 return true; |
| 138 } | 138 } |
| 139 | 139 |
| 140 PluginList::PluginList() | 140 PluginList::PluginList() |
| 141 : plugins_loaded_(false), plugins_need_refresh_(false) { | 141 : plugins_loaded_(false), plugins_need_refresh_(false) { |
| 142 PlatformInit(); | 142 PlatformInit(); |
| 143 | 143 |
| 144 #if defined(OS_WIN) || defined(OS_MACOSX) | 144 #if defined(OS_WIN) |
| 145 const PluginVersionInfo default_plugin = { | 145 const PluginVersionInfo default_plugin = { |
| 146 FilePath(kDefaultPluginLibraryName), | 146 FilePath(kDefaultPluginLibraryName), |
| 147 L"Default Plug-in", | 147 L"Default Plug-in", |
| 148 L"Provides functionality for installing third-party plug-ins", | 148 L"Provides functionality for installing third-party plug-ins", |
| 149 L"1", | 149 L"1", |
| 150 L"*", | 150 L"*", |
| 151 L"", | 151 L"", |
| 152 L"", | 152 L"", |
| 153 { | 153 { |
| 154 default_plugin::NP_GetEntryPoints, | 154 default_plugin::NP_GetEntryPoints, |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 466 } |
| 467 | 467 |
| 468 return did_disable; | 468 return did_disable; |
| 469 } | 469 } |
| 470 | 470 |
| 471 void PluginList::Shutdown() { | 471 void PluginList::Shutdown() { |
| 472 // TODO | 472 // TODO |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace NPAPI | 475 } // namespace NPAPI |
| OLD | NEW |