1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/build/nsDocShellCID.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * vim: sw=4 ts=4 sts=4 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef nsDocShellCID_h__ 1.11 +#define nsDocShellCID_h__ 1.12 + 1.13 +#define NS_GLOBALHISTORY2_CONTRACTID \ 1.14 + "@mozilla.org/browser/global-history;2" 1.15 + 1.16 +/** 1.17 + * A contract for a service that will track download history. This can be 1.18 + * overridden by embedders if they would like to track additional information 1.19 + * about downloads. 1.20 + * 1.21 + * @implements nsIDownloadHistory 1.22 + */ 1.23 +#define NS_DOWNLOADHISTORY_CONTRACTID \ 1.24 + "@mozilla.org/browser/download-history;1" 1.25 + 1.26 +/** 1.27 + * A contract that can be used to get a service that provides 1.28 + * meta-information about nsIWebNavigation objects' capabilities. 1.29 + * @implements nsIWebNavigationInfo 1.30 + */ 1.31 +#define NS_WEBNAVIGATION_INFO_CONTRACTID \ 1.32 + "@mozilla.org/webnavigation-info;1" 1.33 + 1.34 +/** 1.35 + * Class and contract ID for the docshell. This is the container for a web 1.36 + * navigation context. It implements too many interfaces to count, and the 1.37 + * exact ones keep changing; if they stabilize somewhat that will get 1.38 + * documented. 1.39 + */ 1.40 +#define NS_DOCSHELL_CID \ 1.41 + { 0xf1eac762, 0x87e9, 0x11d3, \ 1.42 + { 0xaf, 0x80, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c } } 1.43 +#define NS_DOCSHELL_CONTRACTID "@mozilla.org/docshell/html;1" 1.44 + 1.45 +/** 1.46 + * Contract ID to obtain the IHistory interface. This is a non-scriptable 1.47 + * interface used to interact with history in an asynchronous manner. 1.48 + */ 1.49 +#define NS_IHISTORY_CONTRACTID "@mozilla.org/browser/history;1" 1.50 + 1.51 +/** 1.52 + * A contract for a service that is used for finding 1.53 + * platform-specific applications for handling particular URLs. 1.54 + * 1.55 + * @implements nsIExternalURLHandlerService 1.56 + */ 1.57 +#define NS_EXTERNALURLHANDLERSERVICE_CONTRACTID "@mozilla.org/uriloader/external-url-handler-service;1" 1.58 + 1.59 +/** 1.60 + * An observer service topic that can be listened to to catch creation 1.61 + * of content browsing areas (both toplevel ones and subframes). The 1.62 + * subject of the notification will be the nsIWebNavigation being 1.63 + * created. At this time the additional data wstring is not defined 1.64 + * to be anything in particular. 1.65 + */ 1.66 +#define NS_WEBNAVIGATION_CREATE "webnavigation-create" 1.67 + 1.68 +/** 1.69 + * An observer service topic that can be listened to to catch creation 1.70 + * of chrome browsing areas (both toplevel ones and subframes). The 1.71 + * subject of the notification will be the nsIWebNavigation being 1.72 + * created. At this time the additional data wstring is not defined 1.73 + * to be anything in particular. 1.74 + */ 1.75 +#define NS_CHROME_WEBNAVIGATION_CREATE "chrome-webnavigation-create" 1.76 + 1.77 +/** 1.78 + * An observer service topic that can be listened to to catch destruction 1.79 + * of content browsing areas (both toplevel ones and subframes). The 1.80 + * subject of the notification will be the nsIWebNavigation being 1.81 + * destroyed. At this time the additional data wstring is not defined 1.82 + * to be anything in particular. 1.83 + */ 1.84 +#define NS_WEBNAVIGATION_DESTROY "webnavigation-destroy" 1.85 + 1.86 +/** 1.87 + * An observer service topic that can be listened to to catch destruction 1.88 + * of chrome browsing areas (both toplevel ones and subframes). The 1.89 + * subject of the notification will be the nsIWebNavigation being 1.90 + * destroyed. At this time the additional data wstring is not defined 1.91 + * to be anything in particular. 1.92 + */ 1.93 +#define NS_CHROME_WEBNAVIGATION_DESTROY "chrome-webnavigation-destroy" 1.94 + 1.95 +#endif // nsDocShellCID_h__