Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.h

Issue 2764773003: Change WebFrameImplBase::initializeCoreFrame to take a Page& (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "platform/heap/SelfKeepAlive.h" 9 #include "platform/heap/SelfKeepAlive.h"
10 #include "public/platform/WebInsecureRequestPolicy.h" 10 #include "public/platform/WebInsecureRequestPolicy.h"
11 #include "public/web/WebRemoteFrame.h" 11 #include "public/web/WebRemoteFrame.h"
12 #include "public/web/WebRemoteFrameClient.h" 12 #include "public/web/WebRemoteFrameClient.h"
13 #include "web/RemoteFrameClientImpl.h" 13 #include "web/RemoteFrameClientImpl.h"
14 #include "web/WebExport.h" 14 #include "web/WebExport.h"
15 #include "web/WebFrameImplBase.h" 15 #include "web/WebFrameImplBase.h"
16 #include "wtf/Compiler.h" 16 #include "wtf/Compiler.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class FrameHost;
21 class FrameOwner; 20 class FrameOwner;
22 class RemoteFrame; 21 class RemoteFrame;
23 enum class WebFrameLoadType; 22 enum class WebFrameLoadType;
24 class WebAssociatedURLLoader; 23 class WebAssociatedURLLoader;
25 struct WebAssociatedURLLoaderOptions; 24 struct WebAssociatedURLLoaderOptions;
26 25
27 class WEB_EXPORT WebRemoteFrameImpl final 26 class WEB_EXPORT WebRemoteFrameImpl final
28 : public WebFrameImplBase, 27 : public WebFrameImplBase,
29 NON_EXPORTED_BASE(public WebRemoteFrame) { 28 NON_EXPORTED_BASE(public WebRemoteFrame) {
30 public: 29 public:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const WebSecurityOrigin& intendedTargetOrigin, 101 const WebSecurityOrigin& intendedTargetOrigin,
103 const WebDOMEvent&) override; 102 const WebDOMEvent&) override;
104 103
105 WebRect selectionBoundsRect() const override; 104 WebRect selectionBoundsRect() const override;
106 105
107 WebString layerTreeAsText(bool showDebugInfo = false) const override; 106 WebString layerTreeAsText(bool showDebugInfo = false) const override;
108 107
109 WebFrameImplBase* toImplBase() { return this; } 108 WebFrameImplBase* toImplBase() { return this; }
110 109
111 // WebFrameImplBase methods: 110 // WebFrameImplBase methods:
112 void initializeCoreFrame(FrameHost*, 111 void initializeCoreFrame(Page&,
113 FrameOwner*, 112 FrameOwner*,
114 const AtomicString& name) override; 113 const AtomicString& name) override;
115 RemoteFrame* frame() const override { return m_frame.get(); } 114 RemoteFrame* frame() const override { return m_frame.get(); }
116 115
117 void setCoreFrame(RemoteFrame*); 116 void setCoreFrame(RemoteFrame*);
118 117
119 WebRemoteFrameClient* client() const { return m_client; } 118 WebRemoteFrameClient* client() const { return m_client; }
120 119
121 static WebRemoteFrameImpl* fromFrame(RemoteFrame&); 120 static WebRemoteFrameImpl* fromFrame(RemoteFrame&);
122 121
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 179
181 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, 180 DEFINE_TYPE_CASTS(WebRemoteFrameImpl,
182 WebFrame, 181 WebFrame,
183 frame, 182 frame,
184 frame->isWebRemoteFrame(), 183 frame->isWebRemoteFrame(),
185 frame.isWebRemoteFrame()); 184 frame.isWebRemoteFrame());
186 185
187 } // namespace blink 186 } // namespace blink
188 187
189 #endif // WebRemoteFrameImpl_h 188 #endif // WebRemoteFrameImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698