dom/mobilemessage/src/MobileMessageCursorCallback.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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef mozilla_dom_mobilemessage_MobileMessageCursorCallback_h
     7 #define mozilla_dom_mobilemessage_MobileMessageCursorCallback_h
     9 #include "nsIMobileMessageCursorCallback.h"
    10 #include "nsCycleCollectionParticipant.h"
    11 #include "nsCOMPtr.h"
    12 #include "nsAutoPtr.h"
    14 class nsICursorContinueCallback;
    16 namespace mozilla {
    17 namespace dom {
    19 class DOMCursor;
    20 class MobileMessageManager;
    22 namespace mobilemessage {
    24 class MobileMessageCursorCallback : public nsIMobileMessageCursorCallback
    25 {
    26   friend class mozilla::dom::MobileMessageManager;
    28 public:
    29   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
    30   NS_DECL_NSIMOBILEMESSAGECURSORCALLBACK
    32   NS_DECL_CYCLE_COLLECTION_CLASS(MobileMessageCursorCallback)
    34   MobileMessageCursorCallback()
    35   {
    36     MOZ_COUNT_CTOR(MobileMessageCursorCallback);
    37   }
    39 private:
    40   virtual ~MobileMessageCursorCallback()
    41   {
    42     MOZ_COUNT_DTOR(MobileMessageCursorCallback);
    43   }
    45   nsRefPtr<DOMCursor> mDOMCursor;
    46 };
    48 } // namespace mobilemessage
    49 } // namespace dom
    50 } // namespace mozilla
    52 #endif // mozilla_dom_mobilemessage_MobileMessageCursorCallback_h

mercurial