Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2874133002: Removed WebFrameClient.cpp from Source/web (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index 7cecaa06c56bb0041edb6e5c4e82cb79e0b88453..750adf7e21f513178d2338562f0526b8f06b6619 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -173,6 +173,16 @@ void WebSharedWorkerImpl::LoadShadowPage() {
SubstituteData(buffer, "text/html", "UTF-8", KURL())));
}
+void WebSharedWorkerImpl::FrameDetached(WebLocalFrame* frame, DetachType type) {
+ if (type == DetachType::kRemove && frame->Parent())
+ frame->Parent()->RemoveChild(frame);
+
+ if (frame->FrameWidget())
+ frame->FrameWidget()->Close();
+
+ frame->Close();
+}
+
void WebSharedWorkerImpl::DidFinishDocumentLoad() {
DCHECK(IsMainThread());
DCHECK(!loading_document_);

Powered by Google App Engine
This is Rietveld 408576698