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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 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/web/WebRemoteFrame.h" 11 #include "public/web/WebRemoteFrame.h"
11 #include "public/web/WebRemoteFrameClient.h" 12 #include "public/web/WebRemoteFrameClient.h"
12 #include "web/RemoteFrameClientImpl.h" 13 #include "web/RemoteFrameClientImpl.h"
13 #include "web/WebExport.h" 14 #include "web/WebExport.h"
14 #include "web/WebFrameImplBase.h" 15 #include "web/WebFrameImplBase.h"
15 #include "wtf/Compiler.h" 16 #include "wtf/Compiler.h"
16 #include "wtf/OwnPtr.h" 17 #include "wtf/OwnPtr.h"
17 18
18 namespace blink { 19 namespace blink {
19 20
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 WebLocalFrame* createLocalChild(WebTreeScopeType, const WebString& name, con st WebString& uniqueName, WebSandboxFlags, WebFrameClient*, WebFrame* previousSi bling, const WebFrameOwnerProperties&, WebFrame* opener) override; 151 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; 152 WebRemoteFrame* createRemoteChild(WebTreeScopeType, const WebString& name, c onst WebString& uniqueName, WebSandboxFlags, WebRemoteFrameClient*, WebFrame* op ener) override;
152 153
153 void initializeFromFrame(WebLocalFrame*) const override; 154 void initializeFromFrame(WebLocalFrame*) const override;
154 155
155 void setReplicatedOrigin(const WebSecurityOrigin&) const override; 156 void setReplicatedOrigin(const WebSecurityOrigin&) const override;
156 void setReplicatedSandboxFlags(WebSandboxFlags) const override; 157 void setReplicatedSandboxFlags(WebSandboxFlags) const override;
157 void setReplicatedName(const WebString& name, const WebString& uniqueName) c onst override; 158 void setReplicatedName(const WebString& name, const WebString& uniqueName) c onst override;
158 void addReplicatedContentSecurityPolicyHeader(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) const override; 159 void addReplicatedContentSecurityPolicyHeader(const WebString& headerValue, WebContentSecurityPolicyType, WebContentSecurityPolicySource) const override;
159 void resetReplicatedContentSecurityPolicy() const override; 160 void resetReplicatedContentSecurityPolicy() const override;
160 void setReplicatedShouldEnforceStrictMixedContentChecking(bool) const overri de; 161 void setReplicatedInsecureRequestPolicy(WebInsecureRequestPolicy) const over ride;
161 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override; 162 void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const override;
162 void DispatchLoadEventForFrameOwner() const override; 163 void DispatchLoadEventForFrameOwner() const override;
163 164
164 void didStartLoading() override; 165 void didStartLoading() override;
165 void didStopLoading() override; 166 void didStopLoading() override;
166 167
167 bool isIgnoredForHitTest() const override; 168 bool isIgnoredForHitTest() const override;
168 169
169 void willEnterFullScreen() override; 170 void willEnterFullScreen() override;
170 171
(...skipping 17 matching lines...) Expand all
188 // Accomplish that by keeping a self-referential Persistent<>. It is 189 // Accomplish that by keeping a self-referential Persistent<>. It is
189 // cleared upon close(). 190 // cleared upon close().
190 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 191 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
191 }; 192 };
192 193
193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 194 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
194 195
195 } // namespace blink 196 } // namespace blink
196 197
197 #endif // WebRemoteFrameImpl_h 198 #endif // WebRemoteFrameImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrame.cpp ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698