| 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/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
| 9 #include "core/frame/WebRemoteFrameBase.h" |
| 9 #include "platform/heap/SelfKeepAlive.h" | 10 #include "platform/heap/SelfKeepAlive.h" |
| 10 #include "platform/wtf/Compiler.h" | 11 #include "platform/wtf/Compiler.h" |
| 11 #include "public/platform/WebInsecureRequestPolicy.h" | 12 #include "public/platform/WebInsecureRequestPolicy.h" |
| 12 #include "public/web/WebRemoteFrame.h" | |
| 13 #include "public/web/WebRemoteFrameClient.h" | 13 #include "public/web/WebRemoteFrameClient.h" |
| 14 #include "web/RemoteFrameClientImpl.h" | 14 #include "web/RemoteFrameClientImpl.h" |
| 15 #include "web/WebExport.h" | 15 #include "web/WebExport.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class FrameOwner; | 19 class FrameOwner; |
| 20 class RemoteFrame; | 20 class RemoteFrame; |
| 21 enum class WebFrameLoadType; | 21 enum class WebFrameLoadType; |
| 22 class WebAssociatedURLLoader; | 22 class WebAssociatedURLLoader; |
| 23 struct WebAssociatedURLLoaderOptions; | 23 struct WebAssociatedURLLoaderOptions; |
| 24 | 24 |
| 25 class WEB_EXPORT WebRemoteFrameImpl final | 25 class WEB_EXPORT WebRemoteFrameImpl final |
| 26 : public GarbageCollectedFinalized<WebRemoteFrameImpl>, | 26 : NON_EXPORTED_BASE(public WebRemoteFrameBase) { |
| 27 NON_EXPORTED_BASE(public WebRemoteFrame) { | |
| 28 public: | 27 public: |
| 29 static WebRemoteFrameImpl* Create(WebTreeScopeType, | 28 static WebRemoteFrameImpl* Create(WebTreeScopeType, |
| 30 WebRemoteFrameClient*, | 29 WebRemoteFrameClient*, |
| 31 WebFrame* opener = nullptr); | 30 WebFrame* opener = nullptr); |
| 32 ~WebRemoteFrameImpl() override; | 31 ~WebRemoteFrameImpl() override; |
| 33 | 32 |
| 34 // WebFrame methods: | 33 // WebFrame methods: |
| 35 void Close() override; | 34 void Close() override; |
| 36 WebString AssignedName() const override; | 35 WebString AssignedName() const override; |
| 37 void SetName(const WebString&) override; | 36 void SetName(const WebString&) override; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void SetReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) override; | 134 void SetReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) override; |
| 136 void SetReplicatedPotentiallyTrustworthyUniqueOrigin(bool) override; | 135 void SetReplicatedPotentiallyTrustworthyUniqueOrigin(bool) override; |
| 137 void DispatchLoadEventOnFrameOwner() override; | 136 void DispatchLoadEventOnFrameOwner() override; |
| 138 void DidStartLoading() override; | 137 void DidStartLoading() override; |
| 139 void DidStopLoading() override; | 138 void DidStopLoading() override; |
| 140 bool IsIgnoredForHitTest() const override; | 139 bool IsIgnoredForHitTest() const override; |
| 141 void WillEnterFullscreen() override; | 140 void WillEnterFullscreen() override; |
| 142 void SetHasReceivedUserGesture() override; | 141 void SetHasReceivedUserGesture() override; |
| 143 v8::Local<v8::Object> GlobalProxy() const override; | 142 v8::Local<v8::Object> GlobalProxy() const override; |
| 144 | 143 |
| 145 void InitializeCoreFrame(Page&, FrameOwner*, const AtomicString& name); | 144 void InitializeCoreFrame(Page&, |
| 146 RemoteFrame* GetFrame() const { return frame_.Get(); } | 145 FrameOwner*, |
| 146 const AtomicString& name) override; |
| 147 RemoteFrame* GetFrame() const override { return frame_.Get(); } |
| 147 | 148 |
| 148 void SetCoreFrame(RemoteFrame*); | 149 void SetCoreFrame(RemoteFrame*); |
| 149 | 150 |
| 150 WebRemoteFrameClient* Client() const { return client_; } | 151 WebRemoteFrameClient* Client() const { return client_; } |
| 151 | 152 |
| 152 static WebRemoteFrameImpl* FromFrame(RemoteFrame&); | 153 static WebRemoteFrameImpl* FromFrame(RemoteFrame&); |
| 153 | 154 |
| 154 DECLARE_TRACE(); | 155 DECLARE_TRACE(); |
| 155 | 156 |
| 156 private: | 157 private: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 175 | 176 |
| 176 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, | 177 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, |
| 177 WebFrame, | 178 WebFrame, |
| 178 frame, | 179 frame, |
| 179 frame->IsWebRemoteFrame(), | 180 frame->IsWebRemoteFrame(), |
| 180 frame.IsWebRemoteFrame()); | 181 frame.IsWebRemoteFrame()); |
| 181 | 182 |
| 182 } // namespace blink | 183 } // namespace blink |
| 183 | 184 |
| 184 #endif // WebRemoteFrameImpl_h | 185 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |