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 "public/web/WebRemoteFrame.h" | 8 #include "public/web/WebRemoteFrame.h" |
9 #include "public/web/WebRemoteFrameClient.h" | 9 #include "public/web/WebRemoteFrameClient.h" |
10 #include "web/RemoteFrameClient.h" | 10 #include "web/RemoteFrameClientImpl.h" |
11 #include "wtf/HashMap.h" | 11 #include "wtf/HashMap.h" |
12 #include "wtf/OwnPtr.h" | 12 #include "wtf/OwnPtr.h" |
13 #include "wtf/RefCounted.h" | 13 #include "wtf/RefCounted.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class FrameHost; | 17 class FrameHost; |
18 class FrameOwner; | 18 class FrameOwner; |
19 class RemoteFrame; | 19 class RemoteFrame; |
20 | 20 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); | 179 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name); |
180 | 180 |
181 void setCoreFrame(PassRefPtr<RemoteFrame>); | 181 void setCoreFrame(PassRefPtr<RemoteFrame>); |
182 RemoteFrame* frame() const { return m_frame.get(); } | 182 RemoteFrame* frame() const { return m_frame.get(); } |
183 | 183 |
184 WebRemoteFrameClient* client() const { return m_client; } | 184 WebRemoteFrameClient* client() const { return m_client; } |
185 | 185 |
186 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); | 186 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); |
187 | 187 |
188 private: | 188 private: |
189 RemoteFrameClient m_frameClient; | 189 RemoteFrameClientImpl m_frameClient; |
190 RefPtr<RemoteFrame> m_frame; | 190 RefPtr<RemoteFrame> m_frame; |
191 WebRemoteFrameClient* m_client; | 191 WebRemoteFrameClient* m_client; |
192 | 192 |
193 HashMap<WebFrame*, OwnPtr<FrameOwner> > m_ownersForChildren; | 193 HashMap<WebFrame*, OwnPtr<FrameOwner> > m_ownersForChildren; |
194 }; | 194 }; |
195 | 195 |
196 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 196 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
197 | 197 |
198 } // namespace blink | 198 } // namespace blink |
199 | 199 |
200 #endif // WebRemoteFrameImpl_h | 200 #endif // WebRemoteFrameImpl_h |
OLD | NEW |