| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // TODO: Need mechanism to cleanup the static instance | 5 // TODO: Need mechanism to cleanup the static instance |
| 6 | 6 |
| 7 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ | 7 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ |
| 8 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ | 8 #define WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "webkit/glue/webplugin.h" | 15 #include "webkit/glue/webplugin.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace NPAPI | 19 namespace NPAPI |
| 20 { | 20 { |
| 21 | 21 |
| 22 // Used by plugins_test when testing the older WMP plugin to force the new | 22 // Used by plugins_test when testing the older WMP plugin to force the new |
| 23 // plugin to not get loaded. | 23 // plugin to not get loaded. |
| 24 #define kUseOldWMPPluginSwitch L"use-old-wmp" | 24 #define kUseOldWMPPluginSwitch L"use-old-wmp" |
| 25 // Used for testing ActiveX shim. By default it's off. If this flag is specified | 25 // Used for testing ActiveX shim. By default it's off. If this flag is specified |
| 26 // we will use the native ActiveX shim. | 26 // we will use the native ActiveX shim. |
| 27 #define kNoNativeActiveXShimSwitch L"no-activex" | 27 #define kNoNativeActiveXShimSwitch L"no-activex" |
| 28 // Internal file name for activex shim, used as a unique identifier. | 28 // Internal file name for activex shim, used as a unique identifier. |
| 29 #define kActiveXShimFileName L"activex-shim" | 29 #define kActiveXShimFileName L"activex-shim" |
| 30 // Internal file name for windows media player. |
| 31 #define kActivexShimFileNameForMediaPlayer L"windows media" |
| 30 | 32 |
| 31 #define kDefaultPluginDllName L"default_plugin" | 33 #define kDefaultPluginDllName L"default_plugin" |
| 32 | 34 |
| 33 class PluginLib; | 35 class PluginLib; |
| 34 class PluginInstance; | 36 class PluginInstance; |
| 35 | 37 |
| 36 // The PluginList is responsible for loading our NPAPI based plugins. | 38 // The PluginList is responsible for loading our NPAPI based plugins. |
| 37 // It loads plugins from a known directory by looking for DLLs | 39 // It loads plugins from a known directory by looking for DLLs |
| 38 // which start with "NP", and checking to see if they are valid | 40 // which start with "NP", and checking to see if they are valid |
| 39 // NPAPI libraries. | 41 // NPAPI libraries. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 bool plugins_loaded_; | 168 bool plugins_loaded_; |
| 167 std::vector<scoped_refptr<PluginLib> > plugins_; | 169 std::vector<scoped_refptr<PluginLib> > plugins_; |
| 168 | 170 |
| 169 DISALLOW_EVIL_CONSTRUCTORS(PluginList); | 171 DISALLOW_EVIL_CONSTRUCTORS(PluginList); |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 } // namespace NPAPI | 174 } // namespace NPAPI |
| 173 | 175 |
| 174 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ | 176 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIST_H__ |
| 175 | 177 |
| OLD | NEW |