1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752
// // DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebNavigation.idl // /// `interface nsIWebNavigation : nsISupports` /// /// ```text /// /** /// * The nsIWebNavigation interface defines an interface for navigating the web. /// * It provides methods and attributes to direct an object to navigate to a new /// * location, stop or restart an in process load, or determine where the object /// * has previously gone. /// */ /// ``` /// // The actual type definition for the interface. This struct has methods // declared on it which will call through its vtable. You never want to pass // this type around by value, always pass it behind a reference. #[repr(C)] pub struct nsIWebNavigation { vtable: *const nsIWebNavigationVTable, /// This field is a phantomdata to ensure that the VTable type and any /// struct containing it is not safe to send across threads, as XPCOM is /// generally not threadsafe. /// /// XPCOM interfaces in general are not safe to send across threads. __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>, } // Implementing XpCom for an interface exposes its IID, which allows for easy // use of the `.query_interface<T>` helper method. This also defines that // method for nsIWebNavigation. unsafe impl XpCom for nsIWebNavigation { const IID: nsIID = nsID(0x3ade79d4, 0x8cb9, 0x4952, [0xb1, 0x8d, 0x4f, 0x9b, 0x63, 0xca, 0x0d, 0x31]); } // We need to implement the RefCounted trait so we can be used with `RefPtr`. // This trait teaches `RefPtr` how to manage our memory. unsafe impl RefCounted for nsIWebNavigation { #[inline] unsafe fn addref(&self) { self.AddRef(); } #[inline] unsafe fn release(&self) { self.Release(); } } // This trait is implemented on all types which can be coerced to from nsIWebNavigation. // It is used in the implementation of `fn coerce<T>`. We hide it from the // documentation, because it clutters it up a lot. #[doc(hidden)] pub trait nsIWebNavigationCoerce { /// Cheaply cast a value of this type from a `nsIWebNavigation`. fn coerce_from(v: &nsIWebNavigation) -> &Self; } // The trivial implementation: We can obviously coerce ourselves to ourselves. impl nsIWebNavigationCoerce for nsIWebNavigation { #[inline] fn coerce_from(v: &nsIWebNavigation) -> &Self { v } } impl nsIWebNavigation { /// Cast this `nsIWebNavigation` to one of its base interfaces. #[inline] pub fn coerce<T: nsIWebNavigationCoerce>(&self) -> &T { T::coerce_from(self) } } // Every interface struct type implements `Deref` to its base interface. This // causes methods on the base interfaces to be directly avaliable on the // object. For example, you can call `.AddRef` or `.QueryInterface` directly // on any interface which inherits from `nsISupports`. impl ::std::ops::Deref for nsIWebNavigation { type Target = nsISupports; #[inline] fn deref(&self) -> &nsISupports { unsafe { ::std::mem::transmute(self) } } } // Ensure we can use .coerce() to cast to our base types as well. Any type which // our base interface can coerce from should be coercable from us as well. impl<T: nsISupportsCoerce> nsIWebNavigationCoerce for T { #[inline] fn coerce_from(v: &nsIWebNavigation) -> &Self { T::coerce_from(v) } } // This struct represents the interface's VTable. A pointer to a statically // allocated version of this struct is at the beginning of every nsIWebNavigation // object. It contains one pointer field for each method in the interface. In // the case where we can't generate a binding for a method, we include a void // pointer. #[doc(hidden)] #[repr(C)] pub struct nsIWebNavigationVTable { /// We need to include the members from the base interface's vtable at the start /// of the VTable definition. pub __base: nsISupportsVTable, /* readonly attribute boolean canGoBack; */ pub GetCanGoBack: unsafe extern "system" fn (this: *const nsIWebNavigation, aCanGoBack: *mut bool) -> nsresult, /* readonly attribute boolean canGoForward; */ pub GetCanGoForward: unsafe extern "system" fn (this: *const nsIWebNavigation, aCanGoForward: *mut bool) -> nsresult, /* void goBack (); */ pub GoBack: unsafe extern "system" fn (this: *const nsIWebNavigation) -> nsresult, /* void goForward (); */ pub GoForward: unsafe extern "system" fn (this: *const nsIWebNavigation) -> nsresult, /* void gotoIndex (in long index); */ pub GotoIndex: unsafe extern "system" fn (this: *const nsIWebNavigation, index: libc::int32_t) -> nsresult, /* void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders, [optional] in nsIPrincipal aTriggeringPrincipal); */ pub LoadURI: unsafe extern "system" fn (this: *const nsIWebNavigation, aURI: *const libc::int16_t, aLoadFlags: libc::uint32_t, aReferrer: *const nsIURI, aPostData: *const nsIInputStream, aHeaders: *const nsIInputStream, aTriggeringPrincipal: *const nsIPrincipal) -> nsresult, /* void loadURIWithOptions (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in unsigned long aReferrerPolicy, in nsIInputStream aPostData, in nsIInputStream aHeaders, in nsIURI aBaseURI, [optional] in nsIPrincipal aTriggeringPrincipal); */ pub LoadURIWithOptions: unsafe extern "system" fn (this: *const nsIWebNavigation, aURI: *const libc::int16_t, aLoadFlags: libc::uint32_t, aReferrer: *const nsIURI, aReferrerPolicy: libc::uint32_t, aPostData: *const nsIInputStream, aHeaders: *const nsIInputStream, aBaseURI: *const nsIURI, aTriggeringPrincipal: *const nsIPrincipal) -> nsresult, /* void reload (in unsigned long aReloadFlags); */ pub Reload: unsafe extern "system" fn (this: *const nsIWebNavigation, aReloadFlags: libc::uint32_t) -> nsresult, /* void stop (in unsigned long aStopFlags); */ pub Stop: unsafe extern "system" fn (this: *const nsIWebNavigation, aStopFlags: libc::uint32_t) -> nsresult, /* readonly attribute nsIDOMDocument document; */ pub GetDocument: unsafe extern "system" fn (this: *const nsIWebNavigation, aDocument: *mut *const nsIDOMDocument) -> nsresult, /* readonly attribute nsIURI currentURI; */ pub GetCurrentURI: unsafe extern "system" fn (this: *const nsIWebNavigation, aCurrentURI: *mut *const nsIURI) -> nsresult, /* readonly attribute nsIURI referringURI; */ pub GetReferringURI: unsafe extern "system" fn (this: *const nsIWebNavigation, aReferringURI: *mut *const nsIURI) -> nsresult, /* attribute nsISHistory sessionHistory; */ pub GetSessionHistory: unsafe extern "system" fn (this: *const nsIWebNavigation, aSessionHistory: *mut *const nsISHistory) -> nsresult, /* attribute nsISHistory sessionHistory; */ pub SetSessionHistory: unsafe extern "system" fn (this: *const nsIWebNavigation, aSessionHistory: *const nsISHistory) -> nsresult, /* void setOriginAttributesBeforeLoading (in jsval originAttributes); */ /// Unable to generate binding because `native type JS::Value is unsupported` pub SetOriginAttributesBeforeLoading: *const ::libc::c_void, } // The implementations of the function wrappers which are exposed to rust code. // Call these methods rather than manually calling through the VTable struct. impl nsIWebNavigation { /// ```text /// /**************************************************************************** /// * The following flags may be bitwise combined to form the load flags /// * parameter passed to either the loadURI or reload method. Some of these /// * flags are only applicable to loadURI. /// */ /// /** /// * This flags defines the range of bits that may be specified. Flags /// * outside this range may be used, but may not be passed to Reload(). /// */ /// ``` /// pub const LOAD_FLAGS_MASK: i64 = 65535; /// ```text /// /** /// * This is the default value for the load flags parameter. /// */ /// ``` /// pub const LOAD_FLAGS_NONE: i64 = 0; /// ```text /// /** /// * Flags 0x1, 0x2, 0x4, 0x8 are reserved for internal use by /// * nsIWebNavigation implementations for now. /// */ /// /** /// * This flag specifies that the load should have the semantics of an HTML /// * Meta-refresh tag (i.e., that the cache should be bypassed). This flag /// * is only applicable to loadURI. /// * XXX the meaning of this flag is poorly defined. /// * XXX no one uses this, so we should probably deprecate and remove it. /// */ /// ``` /// pub const LOAD_FLAGS_IS_REFRESH: i64 = 16; /// ```text /// /** /// * This flag specifies that the load should have the semantics of a link /// * click. This flag is only applicable to loadURI. /// * XXX the meaning of this flag is poorly defined. /// */ /// ``` /// pub const LOAD_FLAGS_IS_LINK: i64 = 32; /// ```text /// /** /// * This flag specifies that history should not be updated. This flag is only /// * applicable to loadURI. /// */ /// ``` /// pub const LOAD_FLAGS_BYPASS_HISTORY: i64 = 64; /// ```text /// /** /// * This flag specifies that any existing history entry should be replaced. /// * This flag is only applicable to loadURI. /// */ /// ``` /// pub const LOAD_FLAGS_REPLACE_HISTORY: i64 = 128; /// ```text /// /** /// * This flag specifies that the local web cache should be bypassed, but an /// * intermediate proxy cache could still be used to satisfy the load. /// */ /// ``` /// pub const LOAD_FLAGS_BYPASS_CACHE: i64 = 256; /// ```text /// /** /// * This flag specifies that any intermediate proxy caches should be bypassed /// * (i.e., that the content should be loaded from the origin server). /// */ /// ``` /// pub const LOAD_FLAGS_BYPASS_PROXY: i64 = 512; /// ```text /// /** /// * This flag specifies that a reload was triggered as a result of detecting /// * an incorrect character encoding while parsing a previously loaded /// * document. /// */ /// ``` /// pub const LOAD_FLAGS_CHARSET_CHANGE: i64 = 1024; /// ```text /// /** /// * If this flag is set, Stop() will be called before the load starts /// * and will stop both content and network activity (the default is to /// * only stop network activity). Effectively, this passes the /// * STOP_CONTENT flag to Stop(), in addition to the STOP_NETWORK flag. /// */ /// ``` /// pub const LOAD_FLAGS_STOP_CONTENT: i64 = 2048; /// ```text /// /** /// * A hint this load was prompted by an external program: take care! /// */ /// ``` /// pub const LOAD_FLAGS_FROM_EXTERNAL: i64 = 4096; /// ```text /// /** /// This flag is set when a user explicitly disables the Mixed Content /// Blocker, and allows Mixed Content to load on an https page. /// */ /// ``` /// pub const LOAD_FLAGS_ALLOW_MIXED_CONTENT: i64 = 8192; /// ```text /// /** /// * This flag specifies that this is the first load in this object. /// * Set with care, since setting incorrectly can cause us to assume that /// * nothing was actually loaded in this object if the load ends up being /// * handled by an external application. This flag must not be passed to /// * Reload. /// */ /// ``` /// pub const LOAD_FLAGS_FIRST_LOAD: i64 = 16384; /// ```text /// /** /// * This flag specifies that the load should not be subject to popup /// * blocking checks. This flag must not be passed to Reload. /// */ /// ``` /// pub const LOAD_FLAGS_ALLOW_POPUPS: i64 = 32768; /// ```text /// /** /// * This flag specifies that the URI classifier should not be checked for /// * this load. This flag must not be passed to Reload. /// */ /// ``` /// pub const LOAD_FLAGS_BYPASS_CLASSIFIER: i64 = 65536; /// ```text /// /** /// * Force relevant cookies to be sent with this load even if normally they /// * wouldn't be. /// */ /// ``` /// pub const LOAD_FLAGS_FORCE_ALLOW_COOKIES: i64 = 131072; /// ```text /// /** /// * Prevent the owner principal from being inherited for this load. /// * Note: Within Gecko we use the term principal rather than owners /// * but some legacy addons might still rely on the outdated term. /// */ /// ``` /// pub const LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL: i64 = 262144; pub const LOAD_FLAGS_DISALLOW_INHERIT_OWNER: i64 = 262144; /// ```text /// /** /// * Overwrite the returned error code with a specific result code /// * when an error page is displayed. /// */ /// ``` /// pub const LOAD_FLAGS_ERROR_LOAD_CHANGES_RV: i64 = 524288; /// ```text /// /** /// * This flag specifies that the URI may be submitted to a third-party /// * server for correction. This should only be applied to non-sensitive /// * URIs entered by users. This flag must not be passed to Reload. /// */ /// ``` /// pub const LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP: i64 = 1048576; /// ```text /// /** /// * This flag specifies that common scheme typos should be corrected. /// */ /// ``` /// pub const LOAD_FLAGS_FIXUP_SCHEME_TYPOS: i64 = 2097152; /// ```text /// /** /// * Allows a top-level data: navigation to occur. E.g. view-image /// * is an explicit user action which should be allowed. /// */ /// ``` /// pub const LOAD_FLAGS_FORCE_ALLOW_DATA_URI: i64 = 4194304; /// ```text /// /**************************************************************************** /// * The following flags may be passed as the stop flags parameter to the stop /// * method defined on this interface. /// */ /// /** /// * This flag specifies that all network activity should be stopped. This /// * includes both active network loads and pending META-refreshes. /// */ /// ``` /// pub const STOP_NETWORK: i64 = 1; /// ```text /// /** /// * This flag specifies that all content activity should be stopped. This /// * includes animated images, plugins and pending Javascript timeouts. /// */ /// ``` /// pub const STOP_CONTENT: i64 = 2; /// ```text /// /** /// * This flag specifies that all activity should be stopped. /// */ /// ``` /// pub const STOP_ALL: i64 = 3; /// ```text /// /** /// * Indicates if the object can go back. If true this indicates that /// * there is back session history available for navigation. /// */ /// ``` /// /// `readonly attribute boolean canGoBack;` #[inline] pub unsafe fn GetCanGoBack(&self, aCanGoBack: *mut bool) -> nsresult { ((*self.vtable).GetCanGoBack)(self, aCanGoBack) } /// ```text /// /** /// * Indicates if the object can go forward. If true this indicates that /// * there is forward session history available for navigation /// */ /// ``` /// /// `readonly attribute boolean canGoForward;` #[inline] pub unsafe fn GetCanGoForward(&self, aCanGoForward: *mut bool) -> nsresult { ((*self.vtable).GetCanGoForward)(self, aCanGoForward) } /// ```text /// /** /// * Tells the object to navigate to the previous session history item. When a /// * page is loaded from session history, all content is loaded from the cache /// * (if available) and page state (such as form values and scroll position) is /// * restored. /// * /// * @throw NS_ERROR_UNEXPECTED /// * Indicates that the call was unexpected at this time, which implies /// * that canGoBack is false. /// */ /// ``` /// /// `void goBack ();` #[inline] pub unsafe fn GoBack(&self, ) -> nsresult { ((*self.vtable).GoBack)(self, ) } /// ```text /// /** /// * Tells the object to navigate to the next session history item. When a /// * page is loaded from session history, all content is loaded from the cache /// * (if available) and page state (such as form values and scroll position) is /// * restored. /// * /// * @throw NS_ERROR_UNEXPECTED /// * Indicates that the call was unexpected at this time, which implies /// * that canGoForward is false. /// */ /// ``` /// /// `void goForward ();` #[inline] pub unsafe fn GoForward(&self, ) -> nsresult { ((*self.vtable).GoForward)(self, ) } /// ```text /// /** /// * Tells the object to navigate to the session history item at a given index. /// * /// * @throw NS_ERROR_UNEXPECTED /// * Indicates that the call was unexpected at this time, which implies /// * that session history entry at the given index does not exist. /// */ /// ``` /// /// `void gotoIndex (in long index);` #[inline] pub unsafe fn GotoIndex(&self, index: libc::int32_t) -> nsresult { ((*self.vtable).GotoIndex)(self, index) } /// ```text /// /** /// * Loads a given URI. This will give priority to loading the requested URI /// * in the object implementing this interface. If it can't be loaded here /// * however, the URI dispatcher will go through its normal process of content /// * loading. /// * /// * @param aURI /// * The URI string to load. For HTTP and FTP URLs and possibly others, /// * characters above U+007F will be converted to UTF-8 and then URL- /// * escaped per the rules of RFC 2396. /// * @param aLoadFlags /// * Flags modifying load behaviour. This parameter is a bitwise /// * combination of the load flags defined above. (Undefined bits are /// * reserved for future use.) Generally you will pass LOAD_FLAGS_NONE /// * for this parameter. /// * @param aReferrer /// * The referring URI. If this argument is null, then the referring /// * URI will be inferred internally. /// * @param aPostData /// * If the URI corresponds to a HTTP request, then this stream is /// * appended directly to the HTTP request headers. It may be prefixed /// * with additional HTTP headers. This stream must contain a "\r\n" /// * sequence separating any HTTP headers from the HTTP request body. /// * This parameter is optional and may be null. /// * @param aHeaders /// * If the URI corresponds to a HTTP request, then any HTTP headers /// * contained in this stream are set on the HTTP request. The HTTP /// * header stream is formatted as: /// * ( HEADER "\r\n" )* /// * This parameter is optional and may be null. /// * @param aTriggeringPrincipal /// * The principal that initiated the load of aURI. If omitted docShell /// * tries to create a codeBasePrincipal from aReferrer if not null. If /// * aReferrer is also null docShell peforms a load using the /// * SystemPrincipal as the triggeringPrincipal. /// */ /// ``` /// /// `void loadURI (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in nsIInputStream aPostData, in nsIInputStream aHeaders, [optional] in nsIPrincipal aTriggeringPrincipal);` #[inline] pub unsafe fn LoadURI(&self, aURI: *const libc::int16_t, aLoadFlags: libc::uint32_t, aReferrer: *const nsIURI, aPostData: *const nsIInputStream, aHeaders: *const nsIInputStream, aTriggeringPrincipal: *const nsIPrincipal) -> nsresult { ((*self.vtable).LoadURI)(self, aURI, aLoadFlags, aReferrer, aPostData, aHeaders, aTriggeringPrincipal) } /// ```text /// /** /// * Loads a given URI. This will give priority to loading the requested URI /// * in the object implementing this interface. If it can't be loaded here /// * however, the URI dispatcher will go through its normal process of content /// * loading. /// * /// * Behaves like loadURI, but allows passing of additional parameters. /// * /// * @param aURI /// * The URI string to load. For HTTP and FTP URLs and possibly others, /// * characters above U+007F will be converted to UTF-8 and then URL- /// * escaped per the rules of RFC 2396. /// * @param aLoadFlags /// * Flags modifying load behaviour. This parameter is a bitwise /// * combination of the load flags defined above. (Undefined bits are /// * reserved for future use.) Generally you will pass LOAD_FLAGS_NONE /// * for this parameter. /// * @param aReferrer /// * The referring URI. If this argument is null, then the referring /// * URI will be inferred internally. /// * @param aReferrerPolicy /// * One of the REFERRER_POLICY_* constants from nsIHttpChannel. /// * Normal case is REFERRER_POLICY_NO_REFERRER_WHEN_DOWNGRADE. /// * @param aPostData /// * If the URI corresponds to a HTTP request, then this stream is /// * appended directly to the HTTP request headers. It may be prefixed /// * with additional HTTP headers. This stream must contain a "\r\n" /// * sequence separating any HTTP headers from the HTTP request body. /// * This parameter is optional and may be null. /// * @param aHeaders /// * If the URI corresponds to a HTTP request, then any HTTP headers /// * contained in this stream are set on the HTTP request. The HTTP /// * header stream is formatted as: /// * ( HEADER "\r\n" )* /// * This parameter is optional and may be null. /// * @param aBaseURI /// * Set to indicate a base URI to be associated with the load. Note /// * that at present this argument is only used with view-source aURIs /// * and cannot be used to resolve aURI. /// * This parameter is optional and may be null. /// * @param aTriggeringPrincipal /// * The principal that initiated the load of aURI. If omitted docShell /// * tries to create a codeBasePrincipal from aReferrer if not null. If /// * aReferrer is also null docShell peforms a load using the /// * SystemPrincipal as the triggeringPrincipal. /// */ /// ``` /// /// `void loadURIWithOptions (in wstring aURI, in unsigned long aLoadFlags, in nsIURI aReferrer, in unsigned long aReferrerPolicy, in nsIInputStream aPostData, in nsIInputStream aHeaders, in nsIURI aBaseURI, [optional] in nsIPrincipal aTriggeringPrincipal);` #[inline] pub unsafe fn LoadURIWithOptions(&self, aURI: *const libc::int16_t, aLoadFlags: libc::uint32_t, aReferrer: *const nsIURI, aReferrerPolicy: libc::uint32_t, aPostData: *const nsIInputStream, aHeaders: *const nsIInputStream, aBaseURI: *const nsIURI, aTriggeringPrincipal: *const nsIPrincipal) -> nsresult { ((*self.vtable).LoadURIWithOptions)(self, aURI, aLoadFlags, aReferrer, aReferrerPolicy, aPostData, aHeaders, aBaseURI, aTriggeringPrincipal) } /// ```text /// /** /// * Tells the Object to reload the current page. There may be cases where the /// * user will be asked to confirm the reload (for example, when it is /// * determined that the request is non-idempotent). /// * /// * @param aReloadFlags /// * Flags modifying load behaviour. This parameter is a bitwise /// * combination of the Load Flags defined above. (Undefined bits are /// * reserved for future use.) Generally you will pass LOAD_FLAGS_NONE /// * for this parameter. /// * /// * @throw NS_BINDING_ABORTED /// * Indicating that the user canceled the reload. /// */ /// ``` /// /// `void reload (in unsigned long aReloadFlags);` #[inline] pub unsafe fn Reload(&self, aReloadFlags: libc::uint32_t) -> nsresult { ((*self.vtable).Reload)(self, aReloadFlags) } /// ```text /// /** /// * Stops a load of a URI. /// * /// * @param aStopFlags /// * This parameter is one of the stop flags defined above. /// */ /// ``` /// /// `void stop (in unsigned long aStopFlags);` #[inline] pub unsafe fn Stop(&self, aStopFlags: libc::uint32_t) -> nsresult { ((*self.vtable).Stop)(self, aStopFlags) } /// ```text /// /** /// * Retrieves the current DOM document for the frame, or lazily creates a /// * blank document if there is none. This attribute never returns null except /// * for unexpected error situations. /// */ /// ``` /// /// `readonly attribute nsIDOMDocument document;` #[inline] pub unsafe fn GetDocument(&self, aDocument: *mut *const nsIDOMDocument) -> nsresult { ((*self.vtable).GetDocument)(self, aDocument) } /// ```text /// /** /// * The currently loaded URI or null. /// */ /// ``` /// /// `readonly attribute nsIURI currentURI;` #[inline] pub unsafe fn GetCurrentURI(&self, aCurrentURI: *mut *const nsIURI) -> nsresult { ((*self.vtable).GetCurrentURI)(self, aCurrentURI) } /// ```text /// /** /// * The referring URI for the currently loaded URI or null. /// */ /// ``` /// /// `readonly attribute nsIURI referringURI;` #[inline] pub unsafe fn GetReferringURI(&self, aReferringURI: *mut *const nsIURI) -> nsresult { ((*self.vtable).GetReferringURI)(self, aReferringURI) } /// ```text /// /** /// * The session history object used by this web navigation instance. /// */ /// ``` /// /// `attribute nsISHistory sessionHistory;` #[inline] pub unsafe fn GetSessionHistory(&self, aSessionHistory: *mut *const nsISHistory) -> nsresult { ((*self.vtable).GetSessionHistory)(self, aSessionHistory) } /// ```text /// /** /// * The session history object used by this web navigation instance. /// */ /// ``` /// /// `attribute nsISHistory sessionHistory;` #[inline] pub unsafe fn SetSessionHistory(&self, aSessionHistory: *const nsISHistory) -> nsresult { ((*self.vtable).SetSessionHistory)(self, aSessionHistory) } /// ```text /// /** /// * Set an OriginAttributes dictionary in the docShell. This can be done only /// * before loading any content. /// */ /// ``` /// /// `void setOriginAttributesBeforeLoading (in jsval originAttributes);` const _SetOriginAttributesBeforeLoading: () = (); }