Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index 9b199d39f2d46c50a99b84b892d381dbb2e21d6b..8d269418e81d6a887931ee13a3a9b9fb6e994960 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -40,6 +40,7 @@ |
#include "content/child/service_worker/service_worker_network_provider.h" |
#include "content/child/service_worker/service_worker_provider_context.h" |
#include "content/child/service_worker/web_service_worker_provider_impl.h" |
+#include "content/child/thread_safe_sender.h" |
#include "content/child/v8_value_converter_impl.h" |
#include "content/child/web_url_loader_impl.h" |
#include "content/child/web_url_request_util.h" |
@@ -157,6 +158,8 @@ |
#include "third_party/WebKit/public/web/WebDocument.h" |
#include "third_party/WebKit/public/web/WebFrameSerializer.h" |
#include "third_party/WebKit/public/web/WebFrameWidget.h" |
+#include "third_party/WebKit/public/web/WebFramelet.h" |
+#include "third_party/WebKit/public/web/WebFrameletClient.h" |
#include "third_party/WebKit/public/web/WebKit.h" |
#include "third_party/WebKit/public/web/WebLocalFrame.h" |
#include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" |
@@ -2602,6 +2605,13 @@ blink::WebFrame* RenderFrameImpl::createChildFrame( |
return web_frame; |
} |
+blink::WebFramelet* RenderFrameImpl::createFramelet(const blink::WebURL& url) { |
+ blink::WebFrameletClient* client = |
+ GetContentClient()->renderer()->CreateFramelet( |
+ this, GURL(url), RenderThreadImpl::current()->thread_safe_sender()); |
+ return blink::WebFramelet::create(client); |
+} |
+ |
void RenderFrameImpl::didChangeOpener(blink::WebFrame* opener) { |
// Only active frames are able to disown their opener. |
if (!opener && is_swapped_out_) |