no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / uriloader / exthandler / nsIContentDispatchChooser.idl
blob00d61e575bc5fd6301d3f8d775c47e53d82c9d1d
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 interface nsIHandlerInfo;
8 interface nsIPrincipal;
9 interface nsIURI;
10 webidl BrowsingContext;
12 /**
13 * This is used to ask a user what they would like to do with a given piece of
14 * content.
16 [scriptable, uuid(456ca3b2-02be-4f97-89a2-08c08d3ad88f)]
17 interface nsIContentDispatchChooser : nsISupports {
18 /**
19 * Opens the handler associated with the given resource.
20 * If the caller does not have permission or no handler is set, we ask the
21 * user to grant permission and pick a handler.
23 * @param aHander
24 * The interface describing the details of how this content should or
25 * can be handled.
26 * @param aURI
27 * The URI of the resource that we are asking about.
28 * @param aTriggeringPrincipal
29 * The principal making the request.
30 * @param aBrowsingContext
31 * The browsing context where the load should happen.
32 * @param aWasTriggeredExternally
33 * True if the load was tripped by an external app.
35 void handleURI(in nsIHandlerInfo aHandler,
36 in nsIURI aURI,
37 in nsIPrincipal aTriggeringPrincipal,
38 in BrowsingContext aBrowsingContext,
39 [optional] in bool aWasTriggeredExternally);