Struct xpcom::interfaces::nsIURIFixupInfo
[−]
[src]
#[repr(C)]pub struct nsIURIFixupInfo { /* fields omitted */ }
interface nsIURIFixupInfo : nsISupports
/**
* Interface indicating what we found/corrected when fixing up a URI
*/
Methods
impl nsIURIFixupInfo
[src]
pub fn coerce<T: nsIURIFixupInfoCoerce>(&self) -> &T
[src]
Cast this nsIURIFixupInfo
to one of its base interfaces.
impl nsIURIFixupInfo
[src]
pub unsafe fn GetConsumer(&self, aConsumer: *mut *const nsISupports) -> nsresult
[src]
/**
* Consumer that asked for fixed up URI.
*/
attribute nsISupports consumer;
pub unsafe fn SetConsumer(&self, aConsumer: *const nsISupports) -> nsresult
[src]
/**
* Consumer that asked for fixed up URI.
*/
attribute nsISupports consumer;
pub unsafe fn GetPreferredURI(
&self,
aPreferredURI: *mut *const nsIURI
) -> nsresult
[src]
&self,
aPreferredURI: *mut *const nsIURI
) -> nsresult
/**
* Our best guess as to what URI the consumer will want. Might
* be null if we couldn't salvage anything (for instance, because
* the input was invalid as a URI and FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP
* was not passed)
*/
readonly attribute nsIURI preferredURI;
pub unsafe fn GetFixedURI(&self, aFixedURI: *mut *const nsIURI) -> nsresult
[src]
/**
* The fixed-up original input, *never* using a keyword search.
* (might be null if the original input was not recoverable as
* a URL, e.g. "foo bar"!)
*/
readonly attribute nsIURI fixedURI;
pub unsafe fn GetKeywordProviderName(
&self,
aKeywordProviderName: &mut nsAString
) -> nsresult
[src]
&self,
aKeywordProviderName: &mut nsAString
) -> nsresult
/**
* The name of the keyword search provider used to provide a keyword search;
* empty string if no keyword search was done.
*/
readonly attribute AString keywordProviderName;
pub unsafe fn GetKeywordAsSent(
&self,
aKeywordAsSent: &mut nsAString
) -> nsresult
[src]
&self,
aKeywordAsSent: &mut nsAString
) -> nsresult
/**
* The keyword as used for the search (post trimming etc.)
* empty string if no keyword search was done.
*/
readonly attribute AString keywordAsSent;
pub unsafe fn GetFixupChangedProtocol(
&self,
aFixupChangedProtocol: *mut bool
) -> nsresult
[src]
&self,
aFixupChangedProtocol: *mut bool
) -> nsresult
/**
* Whether we changed the protocol instead of using one from the input as-is.
*/
readonly attribute boolean fixupChangedProtocol;
pub unsafe fn GetFixupCreatedAlternateURI(
&self,
aFixupCreatedAlternateURI: *mut bool
) -> nsresult
[src]
&self,
aFixupCreatedAlternateURI: *mut bool
) -> nsresult
/**
* Whether we created an alternative URI. We might have added a prefix and/or
* suffix, the contents of which are controlled by the
* browser.fixup.alternate.prefix and .suffix prefs, with the defaults being
* "www." and ".com", respectively.
*/
readonly attribute boolean fixupCreatedAlternateURI;
pub unsafe fn GetOriginalInput(
&self,
aOriginalInput: &mut nsACString
) -> nsresult
[src]
&self,
aOriginalInput: &mut nsACString
) -> nsresult
/**
* The original input
*/
readonly attribute AUTF8String originalInput;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIURIFixupInfo
[src]
const IID: nsIID
IID: nsIID = nsID(1209659779, 46386, 18738, [172, 9, 179, 9, 205, 133, 59, 231])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIURIFixupInfo
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIURIFixupInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.