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

Unified Diff: third_party/WebKit/Source/core/dom/ChildFrameDisconnector.h

Issue 1770523002: Track connected subframes per-Document instead of per-Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix various crashes but still doesn't refcount tracked nodes (and needs to) Created 4 years, 10 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/core/dom/ChildFrameDisconnector.h
diff --git a/third_party/WebKit/Source/core/dom/ChildFrameDisconnector.h b/third_party/WebKit/Source/core/dom/ChildFrameDisconnector.h
deleted file mode 100644
index b57ad10d4211816823cdd30b0927f44f679eefca..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/dom/ChildFrameDisconnector.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ChildFrameDisconnector_h
-#define ChildFrameDisconnector_h
-
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class ElementShadow;
-class HTMLFrameOwnerElement;
-class Node;
-
-class ChildFrameDisconnector {
- STACK_ALLOCATED();
-public:
- enum DisconnectPolicy {
- RootAndDescendants,
- DescendantsOnly
- };
-
- explicit ChildFrameDisconnector(Node& root)
- : m_root(root)
- {
- }
-
- void disconnect(DisconnectPolicy = RootAndDescendants);
-
-private:
- void collectFrameOwners(Node&);
- void collectFrameOwners(ElementShadow&);
- void disconnectCollectedFrameOwners();
- Node& root() const { return *m_root; }
-
- WillBeHeapVector<RefPtrWillBeMember<HTMLFrameOwnerElement>, 10> m_frameOwners;
- RawPtrWillBeMember<Node> m_root;
-};
-
-} // namespace blink
-
-#endif // ChildFrameDisconnector_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/ChildFrameDisconnector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698