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 /* 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_places_PlaceInfo_h__
6 #define mozilla_places_PlaceInfo_h__
8 #include "mozIAsyncHistory.h"
9 #include "nsString.h"
10 #include "nsTArray.h"
11 #include "nsAutoPtr.h"
12 #include "mozilla/Attributes.h"
14 class nsIURI;
15 class mozIVisitInfo;
17 namespace mozilla {
18 namespace places {
21 class PlaceInfo MOZ_FINAL : public mozIPlaceInfo
22 {
23 public:
24 NS_DECL_ISUPPORTS
25 NS_DECL_MOZIPLACEINFO
27 typedef nsTArray< nsCOMPtr<mozIVisitInfo> > VisitsArray;
29 PlaceInfo(int64_t aId, const nsCString& aGUID, already_AddRefed<nsIURI> aURI,
30 const nsString& aTitle, int64_t aFrecency);
31 PlaceInfo(int64_t aId, const nsCString& aGUID, already_AddRefed<nsIURI> aURI,
32 const nsString& aTitle, int64_t aFrecency,
33 const VisitsArray& aVisits);
35 private:
36 const int64_t mId;
37 const nsCString mGUID;
38 nsCOMPtr<nsIURI> mURI;
39 const nsString mTitle;
40 const int64_t mFrecency;
41 const VisitsArray mVisits;
42 bool mVisitsAvailable;
43 };
45 } // namespace places
46 } // namespace mozilla
48 #endif // mozilla_places_PlaceInfo_h__