Sat, 03 Jan 2015 20:18:00 +0100
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: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_telephony_callevent_h
8 #define mozilla_dom_telephony_callevent_h
10 #include "mozilla/dom/Event.h"
11 #include "mozilla/dom/telephony/TelephonyCommon.h"
13 namespace mozilla {
14 namespace dom {
16 struct CallEventInit;
18 class CallEvent MOZ_FINAL : public Event
19 {
20 nsRefPtr<TelephonyCall> mCall;
22 public:
23 NS_DECL_ISUPPORTS_INHERITED
24 NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(CallEvent, Event)
25 NS_FORWARD_TO_EVENT
27 virtual JSObject*
28 WrapObject(JSContext* aCx) MOZ_OVERRIDE;
30 // WebIDL
31 static already_AddRefed<CallEvent>
32 Constructor(const GlobalObject& aGlobal, const nsAString& aType,
33 const CallEventInit& aOptions, ErrorResult& aRv);
35 already_AddRefed<TelephonyCall>
36 GetCall() const;
38 static already_AddRefed<CallEvent>
39 Create(EventTarget* aOwner, const nsAString& aType, TelephonyCall* aCall,
40 bool aCanBubble, bool aCancelable);
42 private:
43 CallEvent(EventTarget* aOwner,
44 nsPresContext* aPresContext,
45 WidgetEvent* aEvent)
46 : Event(aOwner, aPresContext, aEvent)
47 {
48 SetIsDOMBinding();
49 }
51 virtual ~CallEvent()
52 { }
53 };
55 } // namespace dom
56 } // namespace mozilla
58 #endif // mozilla_dom_telephony_callevent_h