dom/telephony/ipc/TelephonyChild.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.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 4 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef mozilla_dom_telephony_TelephonyChild_h
michael@0 7 #define mozilla_dom_telephony_TelephonyChild_h
michael@0 8
michael@0 9 #include "mozilla/dom/telephony/TelephonyCommon.h"
michael@0 10 #include "mozilla/dom/telephony/PTelephonyChild.h"
michael@0 11 #include "mozilla/dom/telephony/PTelephonyRequestChild.h"
michael@0 12 #include "nsITelephonyProvider.h"
michael@0 13
michael@0 14 BEGIN_TELEPHONY_NAMESPACE
michael@0 15
michael@0 16 class TelephonyChild : public PTelephonyChild
michael@0 17 {
michael@0 18 public:
michael@0 19 TelephonyChild(nsITelephonyListener* aListener);
michael@0 20
michael@0 21 protected:
michael@0 22 virtual ~TelephonyChild() {}
michael@0 23
michael@0 24 virtual void
michael@0 25 ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
michael@0 26
michael@0 27 virtual PTelephonyRequestChild*
michael@0 28 AllocPTelephonyRequestChild(const IPCTelephonyRequest& aRequest) MOZ_OVERRIDE;
michael@0 29
michael@0 30 virtual bool
michael@0 31 DeallocPTelephonyRequestChild(PTelephonyRequestChild* aActor) MOZ_OVERRIDE;
michael@0 32
michael@0 33 virtual bool
michael@0 34 RecvNotifyCallError(const uint32_t& aClientId, const int32_t& aCallIndex,
michael@0 35 const nsString& aError) MOZ_OVERRIDE;
michael@0 36
michael@0 37 virtual bool
michael@0 38 RecvNotifyCallStateChanged(const uint32_t& aClientId,
michael@0 39 const IPCCallStateData& aData) MOZ_OVERRIDE;
michael@0 40
michael@0 41 virtual bool
michael@0 42 RecvNotifyCdmaCallWaiting(const uint32_t& aClientId,
michael@0 43 const nsString& aNumber) MOZ_OVERRIDE;
michael@0 44
michael@0 45 virtual bool
michael@0 46 RecvNotifyConferenceCallStateChanged(const uint16_t& aCallState) MOZ_OVERRIDE;
michael@0 47
michael@0 48 virtual bool
michael@0 49 RecvNotifyConferenceError(const nsString& aName,
michael@0 50 const nsString& aMessage) MOZ_OVERRIDE;
michael@0 51
michael@0 52 virtual bool
michael@0 53 RecvNotifySupplementaryService(const uint32_t& aClientId,
michael@0 54 const int32_t& aCallIndex,
michael@0 55 const uint16_t& aNotification) MOZ_OVERRIDE;
michael@0 56
michael@0 57 private:
michael@0 58 nsCOMPtr<nsITelephonyListener> mListener;
michael@0 59 };
michael@0 60
michael@0 61 class TelephonyRequestChild : public PTelephonyRequestChild
michael@0 62 {
michael@0 63 public:
michael@0 64 TelephonyRequestChild(nsITelephonyListener* aListener,
michael@0 65 nsITelephonyCallback* aCallback);
michael@0 66
michael@0 67 protected:
michael@0 68 virtual ~TelephonyRequestChild() {}
michael@0 69
michael@0 70 virtual void
michael@0 71 ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
michael@0 72
michael@0 73 virtual bool
michael@0 74 Recv__delete__(const IPCTelephonyResponse& aResponse) MOZ_OVERRIDE;
michael@0 75
michael@0 76 virtual bool
michael@0 77 RecvNotifyEnumerateCallState(const uint32_t& aClientId,
michael@0 78 const IPCCallStateData& aData) MOZ_OVERRIDE;
michael@0 79
michael@0 80 virtual bool
michael@0 81 RecvNotifyDialError(const nsString& aError) MOZ_OVERRIDE;
michael@0 82
michael@0 83 virtual bool
michael@0 84 RecvNotifyDialSuccess() MOZ_OVERRIDE;
michael@0 85
michael@0 86 private:
michael@0 87 nsCOMPtr<nsITelephonyListener> mListener;
michael@0 88 nsCOMPtr<nsITelephonyCallback> mCallback;
michael@0 89 };
michael@0 90
michael@0 91 END_TELEPHONY_NAMESPACE
michael@0 92
michael@0 93 #endif // mozilla_dom_telephony_TelephonyChild_h

mercurial