dom/ipc/nsICachedFileDescriptorListener.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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 file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef mozilla_dom_ipc_nsICachedFileDescriptorListener_h
     6 #define mozilla_dom_ipc_nsICachedFileDescriptorListener_h
     8 #include "nsISupports.h"
    10 #ifndef NS_NO_VTABLE
    11 #define NS_NO_VTABLE
    12 #endif
    14 #define NS_ICACHEDFILEDESCRIPTORLISTENER_IID \
    15   {0x2cedaee0, 0x6ef2, 0x4f60, {0x9a, 0x6c, 0xdf, 0x4e, 0x4d, 0x65, 0x6a, 0xf7}}
    17 class nsAString;
    19 namespace mozilla {
    20 namespace ipc {
    21 class FileDescriptor;
    22 }
    23 }
    25 class NS_NO_VTABLE nsICachedFileDescriptorListener : public nsISupports
    26 {
    27 public:
    28   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEDFILEDESCRIPTORLISTENER_IID)
    30   virtual void
    31   OnCachedFileDescriptor(const nsAString& aPath,
    32                          const mozilla::ipc::FileDescriptor& aFD) = 0;
    33 };
    35 NS_DEFINE_STATIC_IID_ACCESSOR(nsICachedFileDescriptorListener,
    36                               NS_ICACHEDFILEDESCRIPTORLISTENER_IID)
    38 #endif // mozilla_dom_ipc_nsICachedFileDescriptorListener_h

mercurial