sbMediaSniffer.h
Go to the documentation of this file.
1 /*d
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
27 #ifndef __SB_MEDIASNIFFER_H__
28 #define __SB_MEDIASNIFFER_H__
29 
30 #include <nsIGenericFactory.h>
31 #include <nsIContentSniffer.h>
32 #include <nsStringGlue.h>
33 
34 #define SONGBIRD_MEDIASNIFFER_DESCRIPTION \
35  "Songbird Media Sniffer"
36 #define SONGBIRD_MEDIASNIFFER_CONTRACTID \
37  "@songbirdnest.com/sontentsniffer/manager;1"
38 #define SONGBIRD_MEDIASNIFFER_CLASSNAME \
39  "sbMediaSniffer"
40 #define SONGBIRD_MEDIASNIFFER_CID \
41 { /* b4f06ad2-0252-4a2f-9d83-f4f25d0303a3 */ \
42  0xb4f06ad2, \
43  0x0252, \
44  0x4a2f, \
45  { 0x9d, 0x83, 0xf4, 0xf2, 0x5d, 0x03, 0x03, 0xa3 } \
46 }
47 
48 #define TYPE_MAYBE_MEDIA "application/vnd.songbird.maybe.media"
49 #define TYPE_MAYBE_PLAYLIST "application/vnd.songbird.maybe.playlist"
50 
51 class sbMediaSniffer : public nsIContentSniffer
52 {
53 public:
55  NS_DECL_NSICONTENTSNIFFER
56 
57  static NS_METHOD Register(nsIComponentManager* compMgr,
58  nsIFile* path,
59  const char* registryLocation,
60  const char* componentType,
61  const nsModuleComponentInfo *info);
62  static NS_METHOD Unregister(nsIComponentManager* aCompMgr,
63  nsIFile* aPath,
64  const char* aRegistryLocation,
65  const nsModuleComponentInfo* aInfo);
66 };
67 
68 #endif /* __SB_MEDIASNIFFER_H__ */
_updateCookies aPath
NS_DECL_ISUPPORTS static NS_DECL_NSICONTENTSNIFFER NS_METHOD Register(nsIComponentManager *compMgr, nsIFile *path, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD Unregister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const nsModuleComponentInfo *aInfo)