diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/WebFrameProxy.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/WebFrameProxy.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/WebFrameProxy.cpp b/Source/WebKit2/UIProcess/WebFrameProxy.cpp index f60fab040..f97d85bb6 100644 --- a/Source/WebKit2/UIProcess/WebFrameProxy.cpp +++ b/Source/WebKit2/UIProcess/WebFrameProxy.cpp @@ -37,6 +37,10 @@ #include <stdio.h> #include <wtf/text/WTFString.h> +#if ENABLE(WEB_INTENTS) +#include "WebIntentData.h" +#endif + using namespace WebCore; using namespace std; @@ -94,6 +98,19 @@ void WebFrameProxy::stopLoading() const m_page->process()->send(Messages::WebPage::StopLoadingFrame(m_frameID), m_page->pageID()); } + +#if ENABLE(WEB_INTENTS) +void WebFrameProxy::deliverIntent(WebIntentData* webIntentData) +{ + if (!m_page) + return; + + if (!m_page->isValid()) + return; + + m_page->process()->send(Messages::WebPage::DeliverIntentToFrame(m_frameID, webIntentData->store()), m_page->pageID()); +} +#endif bool WebFrameProxy::canProvideSource() const { |