| 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" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); | 53 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); |
| 54 void createView(); | 54 void createView(); |
| 55 | 55 |
| 56 RemoteFrameView* view() const; | 56 RemoteFrameView* view() const; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); | 59 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); |
| 60 | 60 |
| 61 // Internal Frame helper overrides: | 61 // Internal Frame helper overrides: |
| 62 WindowProxyManager* windowProxyManager() const override; | 62 WindowProxyManager* windowProxyManager() const override { return m_windowPro
xyManager.get(); } |
| 63 | 63 |
| 64 RemoteFrameClient* remoteFrameClient() const; | 64 RemoteFrameClient* remoteFrameClient() const; |
| 65 | 65 |
| 66 RefPtrWillBeMember<RemoteFrameView> m_view; | 66 RefPtrWillBeMember<RemoteFrameView> m_view; |
| 67 RefPtrWillBeMember<RemoteSecurityContext> m_securityContext; | 67 RefPtrWillBeMember<RemoteSecurityContext> m_securityContext; |
| 68 RefPtrWillBeMember<RemoteDOMWindow> m_domWindow; | 68 RefPtrWillBeMember<RemoteDOMWindow> m_domWindow; |
| 69 OwnPtrWillBeMember<WindowProxyManager> m_windowProxyManager; | 69 OwnPtrWillBeMember<WindowProxyManager> m_windowProxyManager; |
| 70 WebLayer* m_remotePlatformLayer; | 70 WebLayer* m_remotePlatformLayer; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 inline RemoteFrameView* RemoteFrame::view() const |
| 74 { |
| 75 return m_view.get(); |
| 76 } |
| 77 |
| 73 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); | 78 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); |
| 74 | 79 |
| 75 } // namespace blink | 80 } // namespace blink |
| 76 | 81 |
| 77 #endif // RemoteFrame_h | 82 #endif // RemoteFrame_h |
| OLD | NEW |