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

#include <WebProcessProxy.h>

Inheritance diagram for WebKit::WebProcessProxy:
WebKit::ChildProcessProxy WebKit::ResponsivenessTimer::Client WebKit::ProcessThrottlerClient WebKit::ProcessLauncher::Client IPC::Connection::Client WTF::ThreadSafeRefCounted< ChildProcessProxy > IPC::MessageReceiver WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase

Public Types

typedef HashMap< uint64_t, RefPtr< WebBackForwardListItem > > WebBackForwardListItemMap
 
typedef HashMap< uint64_t, RefPtr< WebFrameProxy > > WebFrameProxyMap
 
typedef HashMap< uint64_t, WebPageProxy * > WebPageProxyMap
 
typedef HashMap< uint64_t, RefPtr< API::UserInitiatedAction > > UserInitiatedActionMap
 
- Public Types inherited from WebKit::ChildProcessProxy
enum  State { State::Launching, State::Running, State::Terminated }
 

Public Member Functions

 ~WebProcessProxy ()
 
WebConnectionwebConnection () const
 
WebProcessPoolprocessPool ()
 
WebsiteDataStorewebsiteDataStore () const
 
Ref< WebPageProxycreateWebPage (PageClient &, Ref< API::PageConfiguration > &&)
 
void addExistingWebPage (WebPageProxy *, uint64_t pageID)
 
void removeWebPage (uint64_t pageID)
 
WTF::IteratorRange< WebPageProxyMap::const_iterator::Values > pages () const
 
unsigned pageCount () const
 
unsigned visiblePageCount () const
 
void addVisitedLinkStore (VisitedLinkStore &)
 
void addWebUserContentControllerProxy (WebUserContentControllerProxy &)
 
void didDestroyVisitedLinkStore (VisitedLinkStore &)
 
void didDestroyWebUserContentControllerProxy (WebUserContentControllerProxy &)
 
WebBackForwardListItemwebBackForwardItem (uint64_t itemID) const
 
RefPtr< API::UserInitiatedActionuserInitiatedActivity (uint64_t)
 
ResponsivenessTimerresponsivenessTimer ()
 
WebFrameProxywebFrame (uint64_t) const
 
bool canCreateFrame (uint64_t frameID) const
 
void frameCreated (uint64_t, WebFrameProxy *)
 
void disconnectFramesFromPage (WebPageProxy *)
 
size_t frameCountInPage (WebPageProxy *) const
 
VisibleWebPageToken visiblePageToken () const
 
void updateTextCheckerState ()
 
void registerNewWebBackForwardListItem (WebBackForwardListItem *)
 
void removeBackForwardItem (uint64_t)
 
void willAcquireUniversalFileReadSandboxExtension ()
 
void assumeReadAccessToBaseURL (const String &)
 
bool hasAssumedReadAccessToURL (const WebCore::URL &) const
 
bool checkURLReceivedFromWebProcess (const String &)
 
bool checkURLReceivedFromWebProcess (const WebCore::URL &)
 
void didSaveToPageCache ()
 
void releasePageCache ()
 
void fetchWebsiteData (WebCore::SessionID, OptionSet< WebsiteDataType >, Function< void(WebsiteData)> completionHandler)
 
void deleteWebsiteData (WebCore::SessionID, OptionSet< WebsiteDataType >, std::chrono::system_clock::time_point modifiedSince, Function< void()> completionHandler)
 
void deleteWebsiteDataForOrigins (WebCore::SessionID, OptionSet< WebsiteDataType >, const Vector< WebCore::SecurityOriginData > &, Function< void()> completionHandler)
 
void enableSuddenTermination ()
 
void disableSuddenTermination ()
 
bool isSuddenTerminationEnabled ()
 
void requestTermination ()
 
RefPtr< API::ObjecttransformHandlesToObjects (API::Object *)
 
void windowServerConnectionStateChanged ()
 
void processReadyToSuspend ()
 
void didCancelProcessSuspension ()
 
void setIsHoldingLockedFiles (bool)
 
ProcessThrottlerthrottler ()
 
void reinstateNetworkProcessAssertionState (NetworkProcessProxy &)
 
void isResponsive (std::function< void(bool isWebProcessResponsive)>)
 
void didReceiveMainThreadPing ()
 
void memoryPressureStatusChanged (bool isUnderMemoryPressure)
 
bool isUnderMemoryPressure () const
 
- Public Member Functions inherited from WebKit::ChildProcessProxy
virtual ~ChildProcessProxy ()
 
void connect ()
 
void terminate ()
 
template<typename T >
bool send (T &&message, uint64_t destinationID, OptionSet< IPC::SendOption > sendOptions={ })
 
template<typename T >
bool sendSync (T &&message, typename T::Reply &&, uint64_t destinationID, Seconds timeout=1_s, OptionSet< IPC::SendSyncOption > sendSyncOptions={ })
 
IPC::Connectionconnection () const
 
bool hasConnection (const IPC::Connection &connection) const
 
void addMessageReceiver (IPC::StringReference messageReceiverName, IPC::MessageReceiver &)
 
void addMessageReceiver (IPC::StringReference messageReceiverName, uint64_t destinationID, IPC::MessageReceiver &)
 
void removeMessageReceiver (IPC::StringReference messageReceiverName, uint64_t destinationID)
 
void removeMessageReceiver (IPC::StringReference messageReceiverName)
 
State state () const
 
pid_t processIdentifier () const
 
bool canSendMessage () const
 
bool sendMessage (std::unique_ptr< IPC::Encoder >, OptionSet< IPC::SendOption >)
 
void shutDownProcess ()
 
template<typename U >
bool sendSync (U &&message, typename U::Reply &&reply, uint64_t destinationID, Seconds timeout, OptionSet< IPC::SendSyncOption > sendSyncOptions)
 
- Public Member Functions inherited from IPC::MessageReceiver
virtual ~MessageReceiver ()
 
- Public Member Functions inherited from WTF::ThreadSafeRefCounted< ChildProcessProxy >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::ThreadSafeRefCountedBase
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 

Static Public Member Functions

static Ref< WebProcessProxycreate (WebProcessPool &, WebsiteDataStore *)
 
static WebPageProxywebPage (uint64_t pageID)
 
static bool fullKeyboardAccessEnabled ()
 
static void deleteWebsiteDataForTopPrivatelyOwnedDomainsInAllPersistentDataStores (OptionSet< WebsiteDataType >, Vector< String > &topPrivatelyOwnedDomains, bool shouldNotifyPages, std::function< void(Vector< String >)> completionHandler)
 
static RefPtr< API::ObjecttransformObjectsToHandles (API::Object *)
 

Friends

class WebConnectionToWebProcess
 

Additional Inherited Members

- Protected Member Functions inherited from WebKit::ChildProcessProxy
 ChildProcessProxy (bool alwaysRunsAtBackgroundPriority=false)
 
bool dispatchMessage (IPC::Connection &, IPC::Decoder &)
 
bool dispatchSyncMessage (IPC::Connection &, IPC::Decoder &, std::unique_ptr< IPC::Encoder > &)
 
- Protected Member Functions inherited from IPC::Connection::Client
virtual ~Client ()
 
- Protected Member Functions inherited from WTF::ThreadSafeRefCounted< ChildProcessProxy >
 ThreadSafeRefCounted ()=default
 
 ThreadSafeRefCounted ()=default
 
 ThreadSafeRefCounted ()=default
 
- Protected Member Functions inherited from WTF::ThreadSafeRefCountedBase
bool derefBase () const
 
bool derefBase () const
 
bool derefBase () const
 

Member Typedef Documentation

◆ UserInitiatedActionMap

◆ WebBackForwardListItemMap

◆ WebFrameProxyMap

◆ WebPageProxyMap

Constructor & Destructor Documentation

◆ ~WebProcessProxy()

WebKit::WebProcessProxy::~WebProcessProxy ( )

Member Function Documentation

◆ addExistingWebPage()

void WebKit::WebProcessProxy::addExistingWebPage ( WebPageProxy webPage,
uint64_t  pageID 
)

◆ addVisitedLinkStore()

void WebKit::WebProcessProxy::addVisitedLinkStore ( VisitedLinkStore store)

◆ addWebUserContentControllerProxy()

void WebKit::WebProcessProxy::addWebUserContentControllerProxy ( WebUserContentControllerProxy proxy)

◆ assumeReadAccessToBaseURL()

void WebKit::WebProcessProxy::assumeReadAccessToBaseURL ( const String urlString)

◆ canCreateFrame()

bool WebKit::WebProcessProxy::canCreateFrame ( uint64_t  frameID) const

◆ checkURLReceivedFromWebProcess() [1/2]

bool WebKit::WebProcessProxy::checkURLReceivedFromWebProcess ( const String urlString)

◆ checkURLReceivedFromWebProcess() [2/2]

bool WebKit::WebProcessProxy::checkURLReceivedFromWebProcess ( const WebCore::URL url)

◆ create()

Ref< WebProcessProxy > WebKit::WebProcessProxy::create ( WebProcessPool processPool,
WebsiteDataStore websiteDataStore 
)
static

◆ createWebPage()

Ref< WebPageProxy > WebKit::WebProcessProxy::createWebPage ( PageClient pageClient,
Ref< API::PageConfiguration > &&  pageConfiguration 
)

◆ deleteWebsiteData()

void WebKit::WebProcessProxy::deleteWebsiteData ( WebCore::SessionID  sessionID,
OptionSet< WebsiteDataType dataTypes,
std::chrono::system_clock::time_point  modifiedSince,
Function< void()>  completionHandler 
)

◆ deleteWebsiteDataForOrigins()

void WebKit::WebProcessProxy::deleteWebsiteDataForOrigins ( WebCore::SessionID  sessionID,
OptionSet< WebsiteDataType dataTypes,
const Vector< WebCore::SecurityOriginData > &  origins,
Function< void()>  completionHandler 
)

◆ deleteWebsiteDataForTopPrivatelyOwnedDomainsInAllPersistentDataStores()

void WebKit::WebProcessProxy::deleteWebsiteDataForTopPrivatelyOwnedDomainsInAllPersistentDataStores ( OptionSet< WebsiteDataType dataTypes,
Vector< String > &  topPrivatelyOwnedDomains,
bool  shouldNotifyPages,
std::function< void(Vector< String >)>  completionHandler 
)
static

◆ didCancelProcessSuspension()

void WebKit::WebProcessProxy::didCancelProcessSuspension ( )

◆ didDestroyVisitedLinkStore()

void WebKit::WebProcessProxy::didDestroyVisitedLinkStore ( VisitedLinkStore store)

◆ didDestroyWebUserContentControllerProxy()

void WebKit::WebProcessProxy::didDestroyWebUserContentControllerProxy ( WebUserContentControllerProxy proxy)

◆ didReceiveMainThreadPing()

void WebKit::WebProcessProxy::didReceiveMainThreadPing ( )

◆ didSaveToPageCache()

void WebKit::WebProcessProxy::didSaveToPageCache ( )

◆ disableSuddenTermination()

void WebKit::WebProcessProxy::disableSuddenTermination ( )

◆ disconnectFramesFromPage()

void WebKit::WebProcessProxy::disconnectFramesFromPage ( WebPageProxy page)

◆ enableSuddenTermination()

void WebKit::WebProcessProxy::enableSuddenTermination ( )

◆ fetchWebsiteData()

void WebKit::WebProcessProxy::fetchWebsiteData ( WebCore::SessionID  sessionID,
OptionSet< WebsiteDataType dataTypes,
Function< void(WebsiteData)>  completionHandler 
)

◆ frameCountInPage()

size_t WebKit::WebProcessProxy::frameCountInPage ( WebPageProxy page) const

◆ frameCreated()

void WebKit::WebProcessProxy::frameCreated ( uint64_t  frameID,
WebFrameProxy frameProxy 
)

◆ fullKeyboardAccessEnabled()

bool WebKit::WebProcessProxy::fullKeyboardAccessEnabled ( )
static

◆ hasAssumedReadAccessToURL()

bool WebKit::WebProcessProxy::hasAssumedReadAccessToURL ( const WebCore::URL url) const

◆ isResponsive()

void WebKit::WebProcessProxy::isResponsive ( std::function< void(bool isWebProcessResponsive)>  callback)

◆ isSuddenTerminationEnabled()

bool WebKit::WebProcessProxy::isSuddenTerminationEnabled ( )
inline

◆ isUnderMemoryPressure()

bool WebKit::WebProcessProxy::isUnderMemoryPressure ( ) const
inline

◆ memoryPressureStatusChanged()

void WebKit::WebProcessProxy::memoryPressureStatusChanged ( bool  isUnderMemoryPressure)
inline

◆ pageCount()

unsigned WebKit::WebProcessProxy::pageCount ( ) const
inline

◆ pages()

WTF::IteratorRange<WebPageProxyMap::const_iterator::Values> WebKit::WebProcessProxy::pages ( ) const
inline

◆ processPool()

WebProcessPool& WebKit::WebProcessProxy::processPool ( )
inline

◆ processReadyToSuspend()

void WebKit::WebProcessProxy::processReadyToSuspend ( )

◆ registerNewWebBackForwardListItem()

void WebKit::WebProcessProxy::registerNewWebBackForwardListItem ( WebBackForwardListItem item)

◆ reinstateNetworkProcessAssertionState()

void WebKit::WebProcessProxy::reinstateNetworkProcessAssertionState ( NetworkProcessProxy newNetworkProcessProxy)

◆ releasePageCache()

void WebKit::WebProcessProxy::releasePageCache ( )

◆ removeBackForwardItem()

void WebKit::WebProcessProxy::removeBackForwardItem ( uint64_t  itemID)

◆ removeWebPage()

void WebKit::WebProcessProxy::removeWebPage ( uint64_t  pageID)

◆ requestTermination()

void WebKit::WebProcessProxy::requestTermination ( )

◆ responsivenessTimer()

ResponsivenessTimer& WebKit::WebProcessProxy::responsivenessTimer ( )
inline

◆ setIsHoldingLockedFiles()

void WebKit::WebProcessProxy::setIsHoldingLockedFiles ( bool  isHoldingLockedFiles)

◆ throttler()

ProcessThrottler& WebKit::WebProcessProxy::throttler ( )
inline

◆ transformHandlesToObjects()

RefPtr< API::Object > WebKit::WebProcessProxy::transformHandlesToObjects ( API::Object object)

◆ transformObjectsToHandles()

RefPtr< API::Object > WebKit::WebProcessProxy::transformObjectsToHandles ( API::Object object)
static

◆ updateTextCheckerState()

void WebKit::WebProcessProxy::updateTextCheckerState ( )

◆ userInitiatedActivity()

RefPtr< API::UserInitiatedAction > WebKit::WebProcessProxy::userInitiatedActivity ( uint64_t  identifier)

◆ visiblePageCount()

unsigned WebKit::WebProcessProxy::visiblePageCount ( ) const
inline

◆ visiblePageToken()

auto WebKit::WebProcessProxy::visiblePageToken ( ) const

◆ webBackForwardItem()

WebBackForwardListItem * WebKit::WebProcessProxy::webBackForwardItem ( uint64_t  itemID) const

◆ webConnection()

WebConnection* WebKit::WebProcessProxy::webConnection ( ) const
inline

◆ webFrame()

WebFrameProxy * WebKit::WebProcessProxy::webFrame ( uint64_t  frameID) const

◆ webPage()

WebPageProxy * WebKit::WebProcessProxy::webPage ( uint64_t  pageID)
static

◆ websiteDataStore()

WebsiteDataStore* WebKit::WebProcessProxy::websiteDataStore ( ) const
inline

◆ willAcquireUniversalFileReadSandboxExtension()

void WebKit::WebProcessProxy::willAcquireUniversalFileReadSandboxExtension ( )
inline

◆ windowServerConnectionStateChanged()

void WebKit::WebProcessProxy::windowServerConnectionStateChanged ( )

Friends And Related Function Documentation

◆ WebConnectionToWebProcess


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