| OLD | NEW |
| 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" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Event; | 14 class Event; |
| 15 class RemoteDOMWindow; | 15 class RemoteDOMWindow; |
| 16 class RemoteFrameClient; | 16 class RemoteFrameClient; |
| 17 class RemoteFrameView; | 17 class RemoteFrameView; |
| 18 class WebLayer; | 18 class WebLayer; |
| 19 class WindowProxyManager; | 19 class WindowProxyManager; |
| 20 struct FrameLoadRequest; |
| 20 | 21 |
| 21 class CORE_EXPORT RemoteFrame: public Frame { | 22 class CORE_EXPORT RemoteFrame: public Frame { |
| 22 public: | 23 public: |
| 23 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH
ost*, FrameOwner*); | 24 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH
ost*, FrameOwner*); |
| 24 | 25 |
| 25 virtual ~RemoteFrame(); | 26 virtual ~RemoteFrame(); |
| 26 | 27 |
| 27 // Frame overrides: | 28 // Frame overrides: |
| 28 DECLARE_VIRTUAL_TRACE(); | 29 DECLARE_VIRTUAL_TRACE(); |
| 29 bool isRemoteFrame() const override { return true; } | 30 bool isRemoteFrame() const override { return true; } |
| 30 DOMWindow* domWindow() const override; | 31 DOMWindow* domWindow() const override; |
| 31 WindowProxy* windowProxy(DOMWrapperWorld&) override; | 32 WindowProxy* windowProxy(DOMWrapperWorld&) override; |
| 32 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; |
| 33 void reload(ReloadPolicy, ClientRedirectPolicy) override; | 35 void reload(ReloadPolicy, ClientRedirectPolicy) override; |
| 34 void detach() override; | 36 void detach() override; |
| 35 RemoteSecurityContext* securityContext() const override; | 37 RemoteSecurityContext* securityContext() const override; |
| 36 void printNavigationErrorMessage(const Frame&, const char* reason) override
{ } | 38 void printNavigationErrorMessage(const Frame&, const char* reason) override
{ } |
| 37 void disconnectOwnerElement() override; | 39 void disconnectOwnerElement() override; |
| 38 | 40 |
| 39 // FIXME: Remove this method once we have input routing in the browser | 41 // FIXME: Remove this method once we have input routing in the browser |
| 40 // process. See http://crbug.com/339659. | 42 // process. See http://crbug.com/339659. |
| 41 void forwardInputEvent(Event*); | 43 void forwardInputEvent(Event*); |
| 42 | 44 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 66 inline RemoteFrameView* RemoteFrame::view() const | 68 inline RemoteFrameView* RemoteFrame::view() const |
| 67 { | 69 { |
| 68 return m_view.get(); | 70 return m_view.get(); |
| 69 } | 71 } |
| 70 | 72 |
| 71 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); | 73 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); |
| 72 | 74 |
| 73 } // namespace blink | 75 } // namespace blink |
| 74 | 76 |
| 75 #endif // RemoteFrame_h | 77 #endif // RemoteFrame_h |
| OLD | NEW |