Beispiel #1
0
void RemoteFrameClientImpl::detached(FrameDetachType type) {
  // Alert the client that the frame is being detached.
  WebRemoteFrameClient* client = m_webFrame->client();
  if (!client)
    return;

  client->frameDetached(static_cast<WebRemoteFrameClient::DetachType>(type));
  // Clear our reference to RemoteFrame at the very end, in case the client
  // refers to it.
  m_webFrame->setCoreFrame(nullptr);
}
void RemoteFrameClientImpl::detached()
{
    // Alert the client that the frame is being detached.
    RefPtrWillBeRawPtr<WebRemoteFrameImpl> protector(m_webFrame);

    WebRemoteFrameClient* client = m_webFrame->client();
    if (!client)
        return;

    client->frameDetached();
    // Clear our reference to RemoteFrame at the very end, in case the client
    // refers to it.
    m_webFrame->setCoreFrame(nullptr);
}