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

Side by Side Diff: Source/core/frame/RemoteFrame.h

Issue 1041473002: Detach old frame on WebFrame::swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RemoteFrame_h 5 #ifndef RemoteFrame_h
6 #define RemoteFrame_h 6 #define RemoteFrame_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/RemoteSecurityContext.h" 9 #include "core/dom/RemoteSecurityContext.h"
10 #include "core/frame/Frame.h" 10 #include "core/frame/Frame.h"
(...skipping 15 matching lines...) Expand all
26 virtual ~RemoteFrame(); 26 virtual ~RemoteFrame();
27 27
28 // Frame overrides: 28 // Frame overrides:
29 DECLARE_VIRTUAL_TRACE(); 29 DECLARE_VIRTUAL_TRACE();
30 bool isRemoteFrame() const override { return true; } 30 bool isRemoteFrame() const override { return true; }
31 DOMWindow* domWindow() const override; 31 DOMWindow* domWindow() const override;
32 WindowProxy* windowProxy(DOMWrapperWorld&) override; 32 WindowProxy* windowProxy(DOMWrapperWorld&) override;
33 void navigate(Document& originDocument, const KURL&, bool lockBackForwardLis t, UserGestureStatus) override; 33 void navigate(Document& originDocument, const KURL&, bool lockBackForwardLis t, UserGestureStatus) override;
34 void navigate(const FrameLoadRequest& passedRequest) override; 34 void navigate(const FrameLoadRequest& passedRequest) override;
35 void reload(FrameLoadType, ClientRedirectPolicy) override; 35 void reload(FrameLoadType, ClientRedirectPolicy) override;
36 void detach() override; 36 void detach(FrameDetachType) override;
37 RemoteSecurityContext* securityContext() const override; 37 RemoteSecurityContext* securityContext() const override;
38 void printNavigationErrorMessage(const Frame&, const char* reason) override { } 38 void printNavigationErrorMessage(const Frame&, const char* reason) override { }
39 void disconnectOwnerElement() override; 39 void disconnectOwnerElement() override;
40 bool prepareForCommit() override;
40 41
41 // FIXME: Remove this method once we have input routing in the browser 42 // FIXME: Remove this method once we have input routing in the browser
42 // process. See http://crbug.com/339659. 43 // process. See http://crbug.com/339659.
43 void forwardInputEvent(Event*); 44 void forwardInputEvent(Event*);
44 45
45 void setRemotePlatformLayer(WebLayer*); 46 void setRemotePlatformLayer(WebLayer*);
46 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } 47 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; }
47 48
48 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); 49 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>);
49 void createView(); 50 void createView();
(...skipping 18 matching lines...) Expand all
68 inline RemoteFrameView* RemoteFrame::view() const 69 inline RemoteFrameView* RemoteFrame::view() const
69 { 70 {
70 return m_view.get(); 71 return m_view.get();
71 } 72 }
72 73
73 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 74 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
74 75
75 } // namespace blink 76 } // namespace blink
76 77
77 #endif // RemoteFrame_h 78 #endif // RemoteFrame_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698