Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/netwerk/cookie/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  CookieNotification.h   Sprache: C

 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef mozilla_net_CookieNotification_h
#define mozilla_net_CookieNotification_h

#include "nsIArray.h"
#include "nsICookieNotification.h"
#include "nsICookie.h"
#include "nsCOMPtr.h"
#include "nsTArray.h"
#include "nsString.h"

namespace mozilla::net {

class CookieNotification final : public nsICookieNotification {
 public:
  // nsISupports
  NS_DECL_ISUPPORTS
  NS_DECL_NSICOOKIENOTIFICATION

  explicit CookieNotification(nsICookieNotification::Action aAction,
                              nsICookie* aCookie, const nsACString& aBaseDomain,
                              bool aIsThirdParty = false,
                              nsIArray* aBatchDeletedCookies = nullptr,
                              uint64_t aBrowsingContextId = 0,
                              const nsID* aOperationID = nullptr)
      : mAction(aAction),
        mCookie(aCookie),
        mBaseDomain(aBaseDomain),
        mIsThirdParty(aIsThirdParty),
        mBatchDeletedCookies(aBatchDeletedCookies),
        mBrowsingContextId(aBrowsingContextId) {
    if (aOperationID) {
      mOperationID = aOperationID->Clone();
    }
  };

 private:
  nsICookieNotification::Action mAction;
  nsCOMPtr<nsICookie> mCookie;
  nsCString mBaseDomain;
  bool mIsThirdParty;
  nsCOMPtr<nsIArray> mBatchDeletedCookies;
  uint64_t mBrowsingContextId = 0;
  nsID* mOperationID = nullptr;

  ~CookieNotification() {
    if (mOperationID) {
      free(mOperationID);
    }
  }
};

}  // namespace mozilla::net

#endif  // mozilla_net_CookieNotification_h

Messung V0.5
C=92 H=100 G=95

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.