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

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

Issue 2165573003: Simplify tests by using Web*Impl types directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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; 20 class FrameHost;
21 class FrameOwner; 21 class FrameOwner;
22 class RemoteFrame; 22 class RemoteFrame;
23 enum class WebFrameLoadType; 23 enum class WebFrameLoadType;
24 24
25 class WEB_EXPORT WebRemoteFrameImpl final : public WebFrameImplBase, WTF_NON_EXP ORTED_BASE(public WebRemoteFrame) { 25 class WEB_EXPORT WebRemoteFrameImpl final : public WebFrameImplBase, WTF_NON_EXP ORTED_BASE(public WebRemoteFrame) {
26 public: 26 public:
27 static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*, W ebFrame* opener); 27 static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*, W ebFrame* opener = nullptr);
tkent 2016/07/20 04:51:01 Do you need to add the default argument in this CL
dcheng 2016/07/20 06:18:07 WebRemoteFrame::create() has this default arg, so
tkent 2016/07/20 06:31:53 Thank you for the explanation. This is ok as is.
28 ~WebRemoteFrameImpl() override; 28 ~WebRemoteFrameImpl() override;
29 29
30 // WebFrame methods: 30 // WebFrame methods:
31 void close() override; 31 void close() override;
32 WebString uniqueName() const override; 32 WebString uniqueName() const override;
33 WebString assignedName() const override; 33 WebString assignedName() const override;
34 void setName(const WebString&) override; 34 void setName(const WebString&) override;
35 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override; 35 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override;
36 void setRemoteWebLayer(WebLayer*) override; 36 void setRemoteWebLayer(WebLayer*) override;
37 void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient*) overr ide; 37 void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient*) overr ide;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Accomplish that by keeping a self-referential Persistent<>. It is 151 // Accomplish that by keeping a self-referential Persistent<>. It is
152 // cleared upon close(). 152 // cleared upon close().
153 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 153 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
154 }; 154 };
155 155
156 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 156 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
157 157
158 } // namespace blink 158 } // namespace blink
159 159
160 #endif // WebRemoteFrameImpl_h 160 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698