/* 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_nsCookieInjector_h__ #define mozilla_nsCookieInjector_h__
// Whether the component is enabled and ready to inject cookies. bool mIsInitialized = false;
// Check the current pref state to determine whether the component should be // enabled. staticbool IsEnabledForCurrentPrefState();
// Enables or disables the component when the relevant prefs change. staticvoid OnPrefChange(constchar* aPref, void* aData);
// Called when the http observer topic is dispatched.
nsresult MaybeInjectCookies(nsIHttpChannel* aChannel, constchar* aTopic);
// Inserts cookies via the cookie manager given a list of cookie injection // rules.
nsresult InjectCookiesFromRules(const nsCString& aHostPort, const nsTArray<RefPtr<nsICookieRule>>& aRules,
OriginAttributes& aOriginAttributes, bool& hasInjectedCookie);
};
} // namespace mozilla
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
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.