/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ //////////////////////////////////////////////////////////////////////////////// /** * INTERFACE TO NETSCAPE COMMUNICATOR PLUGINS (NEW C++ API). * *
This superscedes the old plugin API (npapi.h, npupp.h), and * eliminates the need for glue files: npunix.c, npwin.cpp and npmac.cpp that * get linked with the plugin. You will however need to link with the "backward * adapter" (badapter.cpp) in order to allow your plugin to run in pre-5.0 * browsers. * *
See nsplugin.h for an overview of how this interface fits with the * overall plugin architecture. */ //////////////////////////////////////////////////////////////////////////////// #ifndef nsIPluginManager_h___ #define nsIPluginManager_h___ #include "nsplugindefs.h" #include "nsISupports.h" /** * The nsIPluginManager interface defines the minimum set of functionality that * the browser will support if it allows plugins. Plugins can call QueryInterface * to determine if a plugin manager implements more specific APIs or other * browser interfaces for the plugin to use (e.g. nsINetworkManager). */ class nsIPluginManager : public nsISupports { public: /** * Returns the value of a variable associated with the plugin manager. * * (Corresponds to NPN_GetValue.) * * @param variable - the plugin manager variable to get * @param value - the address of where to store the resulting value * @result - NS_OK if this operation was successful */ NS_IMETHOD GetValue(nsPluginManagerVariable variable, void *value) = 0; /** * Causes the plugins directory to be searched again for new plugin * libraries. * * (Corresponds to NPN_ReloadPlugins.) * * @param reloadPages - indicates whether currently visible pages should * also be reloaded * @result - NS_OK if this operation was successful */ NS_IMETHOD ReloadPlugins(PRBool reloadPages) = 0; /** * Returns the user agent string for the browser. * * (Corresponds to NPN_UserAgent.) * * @param resultingAgentString - the resulting user agent string * @result - NS_OK if this operation was successful */ NS_IMETHOD UserAgent(const char* *resultingAgentString) = 0; }; #define NS_IPLUGINMANAGER_IID \ { /* f10b9600-a1bc-11d1-85b1-00805f0e4dfe */ \ 0xf10b9600, \ 0xa1bc, \ 0x11d1, \ {0x85, 0xb1, 0x00, 0x80, 0x5f, 0x0e, 0x4d, 0xfe} \ } //////////////////////////////////////////////////////////////////////////////// #endif /* nsIPluginManager_h___ */