Bug 729140 - Add de-XPCOMed getter for private browsing status on nsILoadContext. r=bz
authorJosh Matthews <josh@joshmatthews.net>
Tue, 21 Feb 2012 12:08:22 -0500
changeset 87731 4facf0c60bddc6d4c4e1cd1eeb76db7bd0bc76aa
parent 87730 15461fddfe455656a16f69c3df65fac07ede4777
child 87732 7dce5c5c9654dd6475ebf3fc921abf1d2b95e114
push id22143
push userphilringnalda@gmail.com
push dateSun, 26 Feb 2012 23:12:35 +0000
treeherdermozilla-central@b98fc24ac54b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs729140
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 729140 - Add de-XPCOMed getter for private browsing status on nsILoadContext. r=bz
docshell/base/nsILoadContext.idl
--- a/docshell/base/nsILoadContext.idl
+++ b/docshell/base/nsILoadContext.idl
@@ -83,9 +83,20 @@ interface nsILoadContext : nsISupports
    * on any URIs that might be around.
    */
   readonly attribute boolean isContent;
 
   /*
    * Attribute that determines if private browsing should be used.
    */
   attribute boolean usePrivateBrowsing;
+
+%{C++
+  /**
+   * De-XPCOMed getter to make call-sites cleaner.
+   */
+  bool UsePrivateBrowsing() {
+    bool usingPB;
+    GetUsePrivateBrowsing(&usingPB);
+    return usingPB;
+  }
+%}
 };