nsIWebContentConverterRegistrar.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  * http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * The Original Code is the Web Content Converter Registrar.
16  *
17  * The Initial Developer of the Original Code is Google Inc.
18  * Portions created by the Initial Developer are Copyright (C) 2006
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Ben Goodger <beng@google.com>
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPL"), or
26  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27  * in which case the provisions of the GPL or the LGPL are applicable instead
28  * of those above. If you wish to allow use of your version of this file only
29  * under the terms of either the GPL or the LGPL, and not to allow others to
30  * use your version of this file under the terms of the MPL, indicate your
31  * decision by deleting the provisions above and replace them with the notice
32  * and other provisions required by the GPL or the LGPL. If you do not delete
33  * the provisions above, a recipient may use your version of this file under
34  * the terms of any one of the MPL, the GPL or the LGPL.
35  *
36  * ***** END LICENSE BLOCK ***** */
37 
38 #include "nsIMIMEInfo.idl"
39 #include "nsIWebContentHandlerRegistrar.idl"
40 
41 interface nsIRequest;
42 
43 [scriptable, uuid(eb361098-5158-4b21-8f98-50b445f1f0b2)]
44 interface nsIWebContentHandlerInfo : nsIHandlerApp
45 {
49  readonly attribute AString contentType;
50 
55  readonly attribute AString uri;
56 
64  AString getHandlerURI(in AString uri);
65 };
66 
67 [scriptable, uuid(de7cc06e-e778-45cb-b7db-7a114e1e75b1)]
68 interface nsIWebContentConverterService : nsIWebContentHandlerRegistrar
69 {
81  void setAutoHandler(in AString contentType, in nsIWebContentHandlerInfo handler);
82 
92  nsIWebContentHandlerInfo getAutoHandler(in AString contentType);
93 
102  nsIWebContentHandlerInfo getWebContentHandlerByURI(in AString contentType,
103  in AString uri);
104 
111  void loadPreferredHandler(in nsIRequest request);
112 
120  void removeProtocolHandler(in AString protocol, in AString uri);
121 
129  void removeContentHandler(in AString contentType, in AString uri);
130 
137  void getContentHandlers(in AString contentType, out unsigned long count,
138  [retval,array,size_is(count)] out nsIWebContentHandlerInfo handlers);
139 
146  void resetHandlersForType(in AString contentType);
147 };
148 
void removeProtocolHandler(in AString protocol, in AString uri)
AString getHandlerURI(in AString uri)
void getContentHandlers(in AString contentType, out unsigned long count, [retval, array, size_is(count)] out nsIWebContentHandlerInfo handlers)
inArray array
nsIWebContentHandlerInfo getAutoHandler(in AString contentType)
void loadPreferredHandler(in nsIRequest request)
void resetHandlersForType(in AString contentType)
var handlers
Definition: FeedWriter.js:1044
var uuid
var count
Definition: test_bug7406.js:32
readonly attribute AString contentType
var uri
Definition: FeedWriter.js:1135
GstMessage gpointer data sbGStreamerMessageHandler * handler
nsIWebContentHandlerInfo getWebContentHandlerByURI(in AString contentType, in AString uri)
void setAutoHandler(in AString contentType, in nsIWebContentHandlerInfo handler)
void removeContentHandler(in AString contentType, in AString uri)