| 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 WebRemoteFrameImpl_h | 5 #ifndef WebRemoteFrameImpl_h |
| 6 #define WebRemoteFrameImpl_h | 6 #define WebRemoteFrameImpl_h |
| 7 | 7 |
| 8 #include "core/frame/FrameOwner.h" | 8 #include "core/frame/FrameOwner.h" |
| 9 #include "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
| 10 #include "public/web/WebRemoteFrame.h" | 10 #include "public/web/WebRemoteFrame.h" |
| 11 #include "public/web/WebRemoteFrameClient.h" | 11 #include "public/web/WebRemoteFrameClient.h" |
| 12 #include "web/RemoteFrameClientImpl.h" | 12 #include "web/RemoteFrameClientImpl.h" |
| 13 #include "web/WebExport.h" | |
| 14 #include "web/WebFrameImplBase.h" | 13 #include "web/WebFrameImplBase.h" |
| 15 #include "wtf/Compiler.h" | |
| 16 #include "wtf/HashMap.h" | 14 #include "wtf/HashMap.h" |
| 17 #include "wtf/OwnPtr.h" | 15 #include "wtf/OwnPtr.h" |
| 18 #include "wtf/RefCounted.h" | 16 #include "wtf/RefCounted.h" |
| 19 | 17 |
| 20 namespace blink { | 18 namespace blink { |
| 21 | 19 |
| 22 class FrameHost; | 20 class FrameHost; |
| 23 class FrameOwner; | 21 class FrameOwner; |
| 24 class RemoteFrame; | 22 class RemoteFrame; |
| 25 | 23 |
| 26 class WEB_EXPORT WebRemoteFrameImpl final : public WebFrameImplBase, WTF_NON_EXP
ORTED_BASE(public WebRemoteFrame) { | 24 class WebRemoteFrameImpl final : public WebFrameImplBase, public WebRemoteFrame
{ |
| 27 public: | 25 public: |
| 28 static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*); | 26 static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*); |
| 29 ~WebRemoteFrameImpl() override; | 27 ~WebRemoteFrameImpl() override; |
| 30 | 28 |
| 31 // WebFrame methods: | 29 // WebFrame methods: |
| 32 void close() override; | 30 void close() override; |
| 33 WebString uniqueName() const override; | 31 WebString uniqueName() const override; |
| 34 WebString assignedName() const override; | 32 WebString assignedName() const override; |
| 35 void setName(const WebString&) override; | 33 void setName(const WebString&) override; |
| 36 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override; | 34 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // cleared upon close(). | 194 // cleared upon close(). |
| 197 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 195 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
| 198 #endif | 196 #endif |
| 199 }; | 197 }; |
| 200 | 198 |
| 201 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 199 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 202 | 200 |
| 203 } // namespace blink | 201 } // namespace blink |
| 204 | 202 |
| 205 #endif // WebRemoteFrameImpl_h | 203 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |