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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from dcheng@. Created 4 years, 7 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 "public/web/WebRemoteFrame.h" 9 #include "public/web/WebRemoteFrame.h"
10 #include "public/web/WebRemoteFrameClient.h" 10 #include "public/web/WebRemoteFrameClient.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // WebRemoteFrame methods: 149 // WebRemoteFrame methods:
150 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, con st WebString& uniqueName, WebSandboxFlags, WebFrameClient*, WebFrame* previousSi bling, const WebFrameOwnerProperties&, WebFrame* opener) override; 150 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, con st WebString& uniqueName, WebSandboxFlags, WebFrameClient*, WebFrame* previousSi bling, const WebFrameOwnerProperties&, WebFrame* opener) override;
151 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, c onst WebString& uniqueName, WebSandboxFlags, WebRemoteFrameClient*, WebFrame* op ener) override; 151 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, c onst WebString& uniqueName, WebSandboxFlags, WebRemoteFrameClient*, WebFrame* op ener) override;
152 152
153 void initializeFromFrame(WebLocalFrame*) const override; 153 void initializeFromFrame(WebLocalFrame*) const override;
154 154
155 void setReplicatedOrigin(const WebSecurityOrigin&) const override; 155 void setReplicatedOrigin(const WebSecurityOrigin&) const override;
156 void setReplicatedSandboxFlags(WebSandboxFlags) const override; 156 void setReplicatedSandboxFlags(WebSandboxFlags) const override;
157 void setReplicatedName(const WebString& name, const WebString& uniqueName) c onst override; 157 void setReplicatedName(const WebString& name, const WebString& uniqueName) c onst override;
158 void addReplicatedContentSecurityPolicyHeader(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) const override;
159 void resetReplicatedContentSecurityPolicy() const override;
158 void setReplicatedShouldEnforceStrictMixedContentChecking(bool) const overri de; 160 void setReplicatedShouldEnforceStrictMixedContentChecking(bool) const overri de;
159 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override; 161 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override;
160 void DispatchLoadEventForFrameOwner() const override; 162 void DispatchLoadEventForFrameOwner() const override;
161 163
162 void didStartLoading() override; 164 void didStartLoading() override;
163 void didStopLoading() override; 165 void didStopLoading() override;
164 166
165 bool isIgnoredForHitTest() const override; 167 bool isIgnoredForHitTest() const override;
166 168
167 DECLARE_TRACE(); 169 DECLARE_TRACE();
(...skipping 16 matching lines...) Expand all
184 // Accomplish that by keeping a self-referential Persistent<>. It is 186 // Accomplish that by keeping a self-referential Persistent<>. It is
185 // cleared upon close(). 187 // cleared upon close().
186 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 188 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
187 }; 189 };
188 190
189 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 191 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
190 192
191 } // namespace blink 193 } // namespace blink
192 194
193 #endif // WebRemoteFrameImpl_h 195 #endif // WebRemoteFrameImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698