Bug 1896709 - Part 9: Add ScriptLoadRequest::CacheEntryFound. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D215878
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#ifndef js_loader_ScriptLoadRequest_h
|
||||
#define js_loader_ScriptLoadRequest_h
|
||||
|
||||
#include "js/experimental/JSStencil.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/SourceText.h"
|
||||
#include "js/TypeDecls.h"
|
||||
@@ -189,6 +190,10 @@ class ScriptLoadRequest : public nsISupports,
|
||||
return mFetchOptions->mTriggeringPrincipal;
|
||||
}
|
||||
|
||||
// Convert a CheckingCache ScriptLoadRequest into a Ready one, by populating
|
||||
// the script data from cached script.
|
||||
void CacheEntryFound(LoadedScript* aLoadedScript);
|
||||
|
||||
// Convert a CheckingCache ScriptLoadRequest into a Fetching one, by creating
|
||||
// a new LoadedScript which is matching the ScriptKind provided when
|
||||
// constructing this ScriptLoadRequest.
|
||||
|
||||
Reference in New Issue
Block a user