webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
WebCore::ApplicationCacheHost Class Reference

#include <ApplicationCacheHost.h>

Classes

struct  CacheInfo
 
struct  ResourceInfo
 

Public Types

enum  Status {
  UNCACHED = 0, IDLE = 1, CHECKING = 2, DOWNLOADING = 3,
  UPDATEREADY = 4, OBSOLETE = 5, UNCACHED = 0, IDLE = 1,
  CHECKING = 2, DOWNLOADING = 3, UPDATEREADY = 4, OBSOLETE = 5
}
 
enum  Status {
  UNCACHED = 0, IDLE = 1, CHECKING = 2, DOWNLOADING = 3,
  UPDATEREADY = 4, OBSOLETE = 5, UNCACHED = 0, IDLE = 1,
  CHECKING = 2, DOWNLOADING = 3, UPDATEREADY = 4, OBSOLETE = 5
}
 

Public Member Functions

 ApplicationCacheHost (DocumentLoader &)
 
 ~ApplicationCacheHost ()
 
void selectCacheWithoutManifest ()
 
void selectCacheWithManifest (const URL &manifestURL)
 
void maybeLoadMainResource (ResourceRequest &, SubstituteData &)
 
void maybeLoadMainResourceForRedirect (ResourceRequest &, SubstituteData &)
 
bool maybeLoadFallbackForMainResponse (const ResourceRequest &, const ResourceResponse &)
 
void mainResourceDataReceived (const char *data, int length, long long encodedDataLength, bool allAtOnce)
 
void finishedLoadingMainResource ()
 
void failedLoadingMainResource ()
 
WEBCORE_EXPORT bool maybeLoadResource (ResourceLoader &, const ResourceRequest &, const URL &originalURL)
 
WEBCORE_EXPORT bool maybeLoadFallbackForRedirect (ResourceLoader *, ResourceRequest &, const ResourceResponse &)
 
WEBCORE_EXPORT bool maybeLoadFallbackForResponse (ResourceLoader *, const ResourceResponse &)
 
WEBCORE_EXPORT bool maybeLoadFallbackForError (ResourceLoader *, const ResourceError &)
 
bool maybeLoadSynchronously (ResourceRequest &, ResourceError &, ResourceResponse &, RefPtr< SharedBuffer > &)
 
void maybeLoadFallbackSynchronously (const ResourceRequest &, ResourceError &, ResourceResponse &, RefPtr< SharedBuffer > &)
 
bool canCacheInPageCache ()
 
Status status () const
 
bool update ()
 
bool swapCache ()
 
void abort ()
 
void setDOMApplicationCache (DOMApplicationCache *)
 
void notifyDOMApplicationCache (const AtomicString &eventType, int progressTotal, int progressDone)
 
void stopLoadingInFrame (Frame &)
 
void stopDeferringEvents ()
 
Vector< ResourceInforesourceList ()
 
CacheInfo applicationCacheInfo ()
 
bool shouldLoadResourceFromApplicationCache (const ResourceRequest &, ApplicationCacheResource *&)
 
bool getApplicationCacheFallbackResource (const ResourceRequest &, ApplicationCacheResource *&, ApplicationCache *=nullptr)
 
 ApplicationCacheHost (DocumentLoader &)
 
 ~ApplicationCacheHost ()
 
void selectCacheWithoutManifest ()
 
void selectCacheWithManifest (const URL &manifestURL)
 
void maybeLoadMainResource (ResourceRequest &, SubstituteData &)
 
void maybeLoadMainResourceForRedirect (ResourceRequest &, SubstituteData &)
 
bool maybeLoadFallbackForMainResponse (const ResourceRequest &, const ResourceResponse &)
 
void mainResourceDataReceived (const char *data, int length, long long encodedDataLength, bool allAtOnce)
 
void finishedLoadingMainResource ()
 
void failedLoadingMainResource ()
 
WEBCORE_EXPORT bool maybeLoadResource (ResourceLoader &, const ResourceRequest &, const URL &originalURL)
 
WEBCORE_EXPORT bool maybeLoadFallbackForRedirect (ResourceLoader *, ResourceRequest &, const ResourceResponse &)
 
WEBCORE_EXPORT bool maybeLoadFallbackForResponse (ResourceLoader *, const ResourceResponse &)
 
WEBCORE_EXPORT bool maybeLoadFallbackForError (ResourceLoader *, const ResourceError &)
 
bool maybeLoadSynchronously (ResourceRequest &, ResourceError &, ResourceResponse &, RefPtr< SharedBuffer > &)
 
void maybeLoadFallbackSynchronously (const ResourceRequest &, ResourceError &, ResourceResponse &, RefPtr< SharedBuffer > &)
 
bool canCacheInPageCache ()
 
Status status () const
 
bool update ()
 
bool swapCache ()
 
void abort ()
 
void setDOMApplicationCache (DOMApplicationCache *)
 
void notifyDOMApplicationCache (const AtomicString &eventType, int progressTotal, int progressDone)
 
void stopLoadingInFrame (Frame &)
 
void stopDeferringEvents ()
 
Vector< ResourceInforesourceList ()
 
CacheInfo applicationCacheInfo ()
 
bool shouldLoadResourceFromApplicationCache (const ResourceRequest &, ApplicationCacheResource *&)
 
bool getApplicationCacheFallbackResource (const ResourceRequest &, ApplicationCacheResource *&, ApplicationCache *=nullptr)
 

Static Public Member Functions

static URL createFileURL (const String &)
 
static URL createFileURL (const String &)
 

Friends

class ApplicationCacheGroup
 

Member Enumeration Documentation

◆ Status [1/2]

Enumerator
UNCACHED 
IDLE 
CHECKING 
DOWNLOADING 
UPDATEREADY 
OBSOLETE 
UNCACHED 
IDLE 
CHECKING 
DOWNLOADING 
UPDATEREADY 
OBSOLETE 

◆ Status [2/2]

Enumerator
UNCACHED 
IDLE 
CHECKING 
DOWNLOADING 
UPDATEREADY 
OBSOLETE 
UNCACHED 
IDLE 
CHECKING 
DOWNLOADING 
UPDATEREADY 
OBSOLETE 

Constructor & Destructor Documentation

◆ ApplicationCacheHost() [1/2]

WebCore::ApplicationCacheHost::ApplicationCacheHost ( DocumentLoader documentLoader)
explicit

◆ ~ApplicationCacheHost() [1/2]

WebCore::ApplicationCacheHost::~ApplicationCacheHost ( )

◆ ApplicationCacheHost() [2/2]

WebCore::ApplicationCacheHost::ApplicationCacheHost ( DocumentLoader )
explicit

◆ ~ApplicationCacheHost() [2/2]

WebCore::ApplicationCacheHost::~ApplicationCacheHost ( )

Member Function Documentation

◆ abort() [1/2]

void WebCore::ApplicationCacheHost::abort ( )

◆ abort() [2/2]

void WebCore::ApplicationCacheHost::abort ( )

◆ applicationCacheInfo() [1/2]

ApplicationCacheHost::CacheInfo WebCore::ApplicationCacheHost::applicationCacheInfo ( )

◆ applicationCacheInfo() [2/2]

CacheInfo WebCore::ApplicationCacheHost::applicationCacheInfo ( )

◆ canCacheInPageCache() [1/2]

bool WebCore::ApplicationCacheHost::canCacheInPageCache ( )

◆ canCacheInPageCache() [2/2]

bool WebCore::ApplicationCacheHost::canCacheInPageCache ( )

◆ createFileURL() [1/2]

URL WebCore::ApplicationCacheHost::createFileURL ( const String path)
static

◆ createFileURL() [2/2]

static URL WebCore::ApplicationCacheHost::createFileURL ( const String )
static

◆ failedLoadingMainResource() [1/2]

void WebCore::ApplicationCacheHost::failedLoadingMainResource ( )

◆ failedLoadingMainResource() [2/2]

void WebCore::ApplicationCacheHost::failedLoadingMainResource ( )

◆ finishedLoadingMainResource() [1/2]

void WebCore::ApplicationCacheHost::finishedLoadingMainResource ( )

◆ finishedLoadingMainResource() [2/2]

void WebCore::ApplicationCacheHost::finishedLoadingMainResource ( )

◆ getApplicationCacheFallbackResource() [1/2]

bool WebCore::ApplicationCacheHost::getApplicationCacheFallbackResource ( const ResourceRequest request,
ApplicationCacheResource *&  resource,
ApplicationCache cache = nullptr 
)

◆ getApplicationCacheFallbackResource() [2/2]

bool WebCore::ApplicationCacheHost::getApplicationCacheFallbackResource ( const ResourceRequest ,
ApplicationCacheResource *&  ,
ApplicationCache = nullptr 
)

◆ mainResourceDataReceived() [1/2]

void WebCore::ApplicationCacheHost::mainResourceDataReceived ( const char *  data,
int  length,
long long  encodedDataLength,
bool  allAtOnce 
)

◆ mainResourceDataReceived() [2/2]

void WebCore::ApplicationCacheHost::mainResourceDataReceived ( const char *  data,
int  length,
long long  encodedDataLength,
bool  allAtOnce 
)

◆ maybeLoadFallbackForError() [1/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheHost::maybeLoadFallbackForError ( ResourceLoader ,
const ResourceError  
)

◆ maybeLoadFallbackForError() [2/2]

bool WebCore::ApplicationCacheHost::maybeLoadFallbackForError ( ResourceLoader resourceLoader,
const ResourceError error 
)

◆ maybeLoadFallbackForMainResponse() [1/2]

bool WebCore::ApplicationCacheHost::maybeLoadFallbackForMainResponse ( const ResourceRequest ,
const ResourceResponse  
)

◆ maybeLoadFallbackForMainResponse() [2/2]

bool WebCore::ApplicationCacheHost::maybeLoadFallbackForMainResponse ( const ResourceRequest request,
const ResourceResponse r 
)

◆ maybeLoadFallbackForRedirect() [1/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheHost::maybeLoadFallbackForRedirect ( ResourceLoader ,
ResourceRequest ,
const ResourceResponse  
)

◆ maybeLoadFallbackForRedirect() [2/2]

bool WebCore::ApplicationCacheHost::maybeLoadFallbackForRedirect ( ResourceLoader resourceLoader,
ResourceRequest request,
const ResourceResponse redirectResponse 
)

◆ maybeLoadFallbackForResponse() [1/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheHost::maybeLoadFallbackForResponse ( ResourceLoader ,
const ResourceResponse  
)

◆ maybeLoadFallbackForResponse() [2/2]

bool WebCore::ApplicationCacheHost::maybeLoadFallbackForResponse ( ResourceLoader resourceLoader,
const ResourceResponse response 
)

◆ maybeLoadFallbackSynchronously() [1/2]

void WebCore::ApplicationCacheHost::maybeLoadFallbackSynchronously ( const ResourceRequest ,
ResourceError ,
ResourceResponse ,
RefPtr< SharedBuffer > &   
)

◆ maybeLoadFallbackSynchronously() [2/2]

void WebCore::ApplicationCacheHost::maybeLoadFallbackSynchronously ( const ResourceRequest request,
ResourceError error,
ResourceResponse response,
RefPtr< SharedBuffer > &  data 
)

◆ maybeLoadMainResource() [1/2]

void WebCore::ApplicationCacheHost::maybeLoadMainResource ( ResourceRequest ,
SubstituteData  
)

◆ maybeLoadMainResource() [2/2]

void WebCore::ApplicationCacheHost::maybeLoadMainResource ( ResourceRequest request,
SubstituteData substituteData 
)

◆ maybeLoadMainResourceForRedirect() [1/2]

void WebCore::ApplicationCacheHost::maybeLoadMainResourceForRedirect ( ResourceRequest ,
SubstituteData  
)

◆ maybeLoadMainResourceForRedirect() [2/2]

void WebCore::ApplicationCacheHost::maybeLoadMainResourceForRedirect ( ResourceRequest request,
SubstituteData substituteData 
)

◆ maybeLoadResource() [1/2]

WEBCORE_EXPORT bool WebCore::ApplicationCacheHost::maybeLoadResource ( ResourceLoader ,
const ResourceRequest ,
const URL originalURL 
)

◆ maybeLoadResource() [2/2]

bool WebCore::ApplicationCacheHost::maybeLoadResource ( ResourceLoader loader,
const ResourceRequest request,
const URL originalURL 
)

◆ maybeLoadSynchronously() [1/2]

bool WebCore::ApplicationCacheHost::maybeLoadSynchronously ( ResourceRequest request,
ResourceError error,
ResourceResponse response,
RefPtr< SharedBuffer > &  data 
)

◆ maybeLoadSynchronously() [2/2]

bool WebCore::ApplicationCacheHost::maybeLoadSynchronously ( ResourceRequest ,
ResourceError ,
ResourceResponse ,
RefPtr< SharedBuffer > &   
)

◆ notifyDOMApplicationCache() [1/2]

void WebCore::ApplicationCacheHost::notifyDOMApplicationCache ( const AtomicString eventType,
int  progressTotal,
int  progressDone 
)

◆ notifyDOMApplicationCache() [2/2]

void WebCore::ApplicationCacheHost::notifyDOMApplicationCache ( const AtomicString eventType,
int  progressTotal,
int  progressDone 
)

◆ resourceList() [1/2]

Vector< ApplicationCacheHost::ResourceInfo > WebCore::ApplicationCacheHost::resourceList ( )

◆ resourceList() [2/2]

Vector<ResourceInfo> WebCore::ApplicationCacheHost::resourceList ( )

◆ selectCacheWithManifest() [1/2]

void WebCore::ApplicationCacheHost::selectCacheWithManifest ( const URL manifestURL)

◆ selectCacheWithManifest() [2/2]

void WebCore::ApplicationCacheHost::selectCacheWithManifest ( const URL manifestURL)

◆ selectCacheWithoutManifest() [1/2]

void WebCore::ApplicationCacheHost::selectCacheWithoutManifest ( )

◆ selectCacheWithoutManifest() [2/2]

void WebCore::ApplicationCacheHost::selectCacheWithoutManifest ( )

◆ setDOMApplicationCache() [1/2]

void WebCore::ApplicationCacheHost::setDOMApplicationCache ( DOMApplicationCache )

◆ setDOMApplicationCache() [2/2]

void WebCore::ApplicationCacheHost::setDOMApplicationCache ( DOMApplicationCache domApplicationCache)

◆ shouldLoadResourceFromApplicationCache() [1/2]

bool WebCore::ApplicationCacheHost::shouldLoadResourceFromApplicationCache ( const ResourceRequest ,
ApplicationCacheResource *&   
)

◆ shouldLoadResourceFromApplicationCache() [2/2]

bool WebCore::ApplicationCacheHost::shouldLoadResourceFromApplicationCache ( const ResourceRequest originalRequest,
ApplicationCacheResource *&  resource 
)

◆ status() [1/2]

ApplicationCacheHost::Status WebCore::ApplicationCacheHost::status ( ) const

◆ status() [2/2]

Status WebCore::ApplicationCacheHost::status ( ) const

◆ stopDeferringEvents() [1/2]

void WebCore::ApplicationCacheHost::stopDeferringEvents ( )

◆ stopDeferringEvents() [2/2]

void WebCore::ApplicationCacheHost::stopDeferringEvents ( )

◆ stopLoadingInFrame() [1/2]

void WebCore::ApplicationCacheHost::stopLoadingInFrame ( Frame frame)

◆ stopLoadingInFrame() [2/2]

void WebCore::ApplicationCacheHost::stopLoadingInFrame ( Frame )

◆ swapCache() [1/2]

bool WebCore::ApplicationCacheHost::swapCache ( )

◆ swapCache() [2/2]

bool WebCore::ApplicationCacheHost::swapCache ( )

◆ update() [1/2]

bool WebCore::ApplicationCacheHost::update ( )

◆ update() [2/2]

bool WebCore::ApplicationCacheHost::update ( )

Friends And Related Function Documentation

◆ ApplicationCacheGroup


The documentation for this class was generated from the following files: