本文整理汇总了C++中WebPage::injectedBundleLoaderClient方法的典型用法代码示例。如果您正苦于以下问题:C++ WebPage::injectedBundleLoaderClient方法的具体用法?C++ WebPage::injectedBundleLoaderClient怎么用?C++ WebPage::injectedBundleLoaderClient使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebPage
的用法示例。
在下文中一共展示了WebPage::injectedBundleLoaderClient方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dispatchDidCommitLoad
void WebFrameLoaderClient::dispatchDidCommitLoad()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
const ResourceResponse& response = m_frame->coreFrame()->loader()->documentLoader()->response();
RefPtr<APIObject> userData;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didCommitLoadForFrame(webPage, m_frame, userData);
webPage->sandboxExtensionTracker().didCommitProvisionalLoad(m_frame);
// Notify the UIProcess.
webPage->send(Messages::WebPageProxy::DidCommitLoadForFrame(m_frame->frameID(), response.mimeType(), m_frameHasCustomRepresentation, PlatformCertificateInfo(response), InjectedBundleUserMessageEncoder(userData.get())));
// Only restore the scale factor for standard frame loads (of the main frame).
if (m_frame->isMainFrame() && m_frame->coreFrame()->loader()->loadType() == FrameLoadTypeStandard) {
Page* page = m_frame->coreFrame()->page();
if (page && page->pageScaleFactor() != 1)
webPage->scalePage(1, IntPoint());
}
}
示例2: dispatchDidClearWindowObjectInWorld
void WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld* world)
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
webPage->injectedBundleLoaderClient().didClearWindowObjectForFrame(webPage, m_frame, world);
}
示例3: dispatchWillPerformClientRedirect
void WebFrameLoaderClient::dispatchWillPerformClientRedirect(const KURL& url, double interval, double fireDate)
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().willPerformClientRedirectForFrame(webPage, m_frame, url.string(), interval, fireDate);
}
示例4: dispatchDidChangeLocationWithinPage
void WebFrameLoaderClient::dispatchDidChangeLocationWithinPage()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didChangeLocationWithinPageForFrame(webPage, m_frame);
}
示例5: didRunInsecureContent
void WebFrameLoaderClient::didRunInsecureContent(SecurityOrigin*)
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didRunInsecureContentForFrame(webPage, m_frame);
}
示例6: dispatchDidCancelClientRedirect
void WebFrameLoaderClient::dispatchDidCancelClientRedirect()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didCancelClientRedirectForFrame(webPage, m_frame);
}
示例7: dispatchDidHandleOnloadEvents
void WebFrameLoaderClient::dispatchDidHandleOnloadEvents()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didHandleOnloadEventsForFrame(webPage, m_frame);
}
示例8: didDetectXSS
void WebFrameLoaderClient::didDetectXSS(const KURL&, bool)
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
RefPtr<APIObject> userData;
webPage->injectedBundleLoaderClient().didDetectXSSForFrame(webPage, m_frame, userData);
webPage->send(Messages::WebPageProxy::DidDetectXSSForFrame(m_frame->frameID(), InjectedBundleUserMessageEncoder(userData.get())));
}
示例9: dispatchDidFinishDocumentLoad
void WebFrameLoaderClient::dispatchDidFinishDocumentLoad()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didFinishDocumentLoadForFrame(webPage, m_frame);
// Notify the UIProcess.
WebProcess::shared().connection()->send(WebPageProxyMessage::DidFinishDocumentLoadForFrame, webPage->pageID(), CoreIPC::In(m_frame->frameID()));
}
示例10: dispatchDidReceiveTitle
void WebFrameLoaderClient::dispatchDidReceiveTitle(const String& title)
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didReceiveTitleForFrame(webPage, title, m_frame);
// Notify the UIProcess.
WebProcess::shared().connection()->send(WebPageProxyMessage::DidReceiveTitleForFrame, webPage->pageID(), CoreIPC::In(m_frame->frameID(), title));
}
示例11: dispatchDidPopStateWithinPage
void WebFrameLoaderClient::dispatchDidPopStateWithinPage()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
RefPtr<APIObject> userData;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didSameDocumentNavigationForFrame(webPage, m_frame, SameDocumentNavigationSessionStatePop, userData);
// Notify the UIProcess.
webPage->send(Messages::WebPageProxy::DidSameDocumentNavigationForFrame(m_frame->frameID(), SameDocumentNavigationSessionStatePop, m_frame->coreFrame()->document()->url().string(), InjectedBundleUserMessageEncoder(userData.get())));
}
示例12: dispatchDidFirstVisuallyNonEmptyLayout
void WebFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
RefPtr<APIObject> userData;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didFirstVisuallyNonEmptyLayoutForFrame(webPage, m_frame, userData);
// Notify the UIProcess.
webPage->send(Messages::WebPageProxy::DidFirstVisuallyNonEmptyLayoutForFrame(m_frame->frameID(), InjectedBundleUserMessageEncoder(userData.get())));
}
示例13: InjectedBundleUserMessageEncoder
void WebFrameLoaderClient::detachedFromParent2()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
RefPtr<APIObject> userData;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didRemoveFrameFromHierarchy(webPage, m_frame, userData);
// Notify the UIProcess.
webPage->send(Messages::WebPageProxy::DidRemoveFrameFromHierarchy(m_frame->frameID(), InjectedBundleUserMessageEncoder(userData.get())));
}
示例14: dispatchDidStartProvisionalLoad
void WebFrameLoaderClient::dispatchDidStartProvisionalLoad()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
DocumentLoader* provisionalLoader = m_frame->coreFrame()->loader()->provisionalDocumentLoader();
const String& url = provisionalLoader->url().string();
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didStartProvisionalLoadForFrame(webPage, m_frame);
// Notify the UIProcess.
WebProcess::shared().connection()->send(WebPageProxyMessage::DidStartProvisionalLoadForFrame, webPage->pageID(), CoreIPC::In(m_frame->frameID(), url));
}
示例15: dispatchDidFinishLoad
void WebFrameLoaderClient::dispatchDidFinishLoad()
{
WebPage* webPage = m_frame->page();
if (!webPage)
return;
// Notify the bundle client.
webPage->injectedBundleLoaderClient().didFinishLoadForFrame(webPage, m_frame);
// Notify the UIProcess.
WebProcess::shared().connection()->send(WebPageProxyMessage::DidFinishLoadForFrame, webPage->pageID(), CoreIPC::In(m_frame->frameID()));
// If we have a load listener, notify it.
if (WebFrame::LoadListener* loadListener = m_frame->loadListener())
loadListener->didFinishLoad(m_frame);
}