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

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

Issue 1807033003: Rewrite how RemoteFrameOwners retain life. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/RemoteBridgeFrameOwner.cpp
diff --git a/third_party/WebKit/Source/web/RemoteBridgeFrameOwner.cpp b/third_party/WebKit/Source/web/RemoteBridgeFrameOwner.cpp
deleted file mode 100644
index 9f3a908586598001eaf940ef07d887228c97b2f6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/RemoteBridgeFrameOwner.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 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.
-
-#include "web/RemoteBridgeFrameOwner.h"
-
-#include "core/frame/LocalFrame.h"
-#include "public/web/WebFrameClient.h"
-#include "web/WebLocalFrameImpl.h"
-
-namespace blink {
-
-RemoteBridgeFrameOwner::RemoteBridgeFrameOwner(SandboxFlags flags, const WebFrameOwnerProperties& frameOwnerProperties)
- : m_sandboxFlags(flags)
- , m_scrolling(static_cast<ScrollbarMode>(frameOwnerProperties.scrollingMode))
- , m_marginWidth(frameOwnerProperties.marginWidth)
- , m_marginHeight(frameOwnerProperties.marginHeight)
-{
-}
-
-DEFINE_TRACE(RemoteBridgeFrameOwner)
-{
- visitor->trace(m_frame);
- FrameOwner::trace(visitor);
-}
-
-void RemoteBridgeFrameOwner::setScrollingMode(WebFrameOwnerProperties::ScrollingMode mode)
-{
- m_scrolling = static_cast<ScrollbarMode>(mode);
-}
-
-void RemoteBridgeFrameOwner::setContentFrame(Frame& frame)
-{
- m_frame = &frame;
-}
-
-void RemoteBridgeFrameOwner::clearContentFrame()
-{
- ASSERT(m_frame->owner() == this);
- m_frame = nullptr;
-}
-
-void RemoteBridgeFrameOwner::dispatchLoad()
-{
- WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(toLocalFrame(*m_frame));
- webFrame->client()->dispatchLoad();
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698