michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef NSEMBEDCID_H michael@0: #define NSEMBEDCID_H michael@0: michael@0: /** michael@0: * @file michael@0: * @brief List of, and documentation for, frozen Gecko embedding contracts. michael@0: */ michael@0: michael@0: /** michael@0: * Web Browser ContractID michael@0: * Creating an instance of this ContractID (via createInstanceByContractID) michael@0: * is the basic way to instantiate a Gecko browser. michael@0: * michael@0: * This contract implements the following interfaces: michael@0: * nsIWebBrowser michael@0: * nsIWebBrowserSetup michael@0: * nsIInterfaceRequestor michael@0: * michael@0: * @note This contract does not guarantee implementation of any other michael@0: * interfaces and does not guarantee ability to get any particular michael@0: * interfaces via the nsIInterfaceRequestor implementation. michael@0: */ michael@0: #define NS_WEBBROWSER_CONTRACTID \ michael@0: "@mozilla.org/embedding/browser/nsWebBrowser;1" michael@0: michael@0: /** michael@0: * Prompt Service ContractID michael@0: * The prompt service (which can be gotten by calling getServiceByContractID michael@0: * on this ContractID) is the way to pose various prompts, alerts, michael@0: * and confirmation dialogs to the user. michael@0: * michael@0: * This contract implements the following interfaces: michael@0: * nsIPromptService michael@0: * nsIPromptService2 (optional) michael@0: * michael@0: * Embedders may override this ContractID with their own implementation if they michael@0: * want more control over the way prompts, alerts, and confirmation dialogs are michael@0: * presented to the user. michael@0: */ michael@0: #define NS_PROMPTSERVICE_CONTRACTID \ michael@0: "@mozilla.org/embedcomp/prompt-service;1" michael@0: michael@0: /** michael@0: * This contract ID should be implemented by password managers to be able to michael@0: * override the standard implementation of nsIAuthPrompt2. It will be used as michael@0: * a service. michael@0: * michael@0: * This contract implements the following interfaces: michael@0: * nsIPromptFactory michael@0: */ michael@0: #define NS_PWMGR_AUTHPROMPTFACTORY \ michael@0: "@mozilla.org/passwordmanager/authpromptfactory;1" michael@0: michael@0: #endif // NSEMBEDCID_H