nsICORSPreflightCache.idl (954B)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #include "nsISupports.idl" 7 #include "nsIURI.idl" 8 #include "nsIPrincipal.idl" 9 #include "nsICORSPreflightCacheEntry.idl" 10 11 /** 12 * nsICORSPreflightCache 13 * 14 * Provides methods for iterating across the preflight cache entries 15 * for access and modification 16 * 17 */ 18 [builtinclass, scriptable, uuid(89781b3e-5cd5-4b63-a549-8d9ec3013505)] 19 interface nsICORSPreflightCache: nsISupports 20 { 21 /** 22 * Retrieves all cache entries that match the specified parameters. 23 */ 24 Array<nsICORSPreflightCacheEntry> getEntries(in nsIPrincipal principal); 25 26 /** 27 * Clears a specified cache entry from the preflight cache. 28 */ 29 void clearEntry(in nsICORSPreflightCacheEntry entry); 30 };