dom/mobilemessage/src/gonk/SmsService.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
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef mozilla_dom_mobilemessage_SmsService_h
     6 #define mozilla_dom_mobilemessage_SmsService_h
     8 #include "nsISmsService.h"
     9 #include "nsCOMPtr.h"
    10 #include "nsIObserver.h"
    11 #include "nsIRadioInterfaceLayer.h"
    12 #include "nsTArray.h"
    13 #include "nsString.h"
    14 #include "mozilla/Attributes.h"
    16 namespace mozilla {
    17 namespace dom {
    18 namespace mobilemessage {
    20 class SmsService MOZ_FINAL : public nsISmsService
    21                            , public nsIObserver
    22 {
    23 public:
    24   NS_DECL_ISUPPORTS
    25   NS_DECL_NSISMSSERVICE
    26   NS_DECL_NSIOBSERVER
    28   SmsService();
    30 protected:
    31   nsCOMPtr<nsIRadioInterfaceLayer> mRil;
    32   nsTArray<nsString> mSilentNumbers;
    33   uint32_t mDefaultServiceId;
    34 };
    36 } // namespace mobilemessage
    37 } // namespace dom
    38 } // namespace mozilla
    40 #endif // mozilla_dom_mobilemessage_SmsService_h

mercurial