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

Side by Side Diff: content/renderer/render_frame_proxy.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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 16 matching lines...) Expand all
27 struct SurfaceId; 27 struct SurfaceId;
28 struct SurfaceSequence; 28 struct SurfaceSequence;
29 } 29 }
30 30
31 namespace content { 31 namespace content {
32 32
33 class ChildFrameCompositingHelper; 33 class ChildFrameCompositingHelper;
34 class RenderFrameImpl; 34 class RenderFrameImpl;
35 class RenderViewImpl; 35 class RenderViewImpl;
36 class RenderWidget; 36 class RenderWidget;
37 struct ContentSecurityPolicyHeader;
37 struct FrameReplicationState; 38 struct FrameReplicationState;
38 39
39 // When a page's frames are rendered by multiple processes, each renderer has a 40 // When a page's frames are rendered by multiple processes, each renderer has a
40 // full copy of the frame tree. It has full RenderFrames for the frames it is 41 // full copy of the frame tree. It has full RenderFrames for the frames it is
41 // responsible for rendering and placeholder objects for frames rendered by 42 // responsible for rendering and placeholder objects for frames rendered by
42 // other processes. This class is the renderer-side object for the placeholder. 43 // other processes. This class is the renderer-side object for the placeholder.
43 // RenderFrameProxy allows us to keep existing window references valid over 44 // RenderFrameProxy allows us to keep existing window references valid over
44 // cross-process navigations and route cross-site asynchronous JavaScript calls, 45 // cross-process navigations and route cross-site asynchronous JavaScript calls,
45 // such as postMessage. 46 // such as postMessage.
46 // 47 //
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void OnCompositorFrameSwapped(const IPC::Message& message); 159 void OnCompositorFrameSwapped(const IPC::Message& message);
159 void OnSetChildFrameSurface(const cc::SurfaceId& surface_id, 160 void OnSetChildFrameSurface(const cc::SurfaceId& surface_id,
160 const gfx::Size& frame_size, 161 const gfx::Size& frame_size,
161 float scale_factor, 162 float scale_factor,
162 const cc::SurfaceSequence& sequence); 163 const cc::SurfaceSequence& sequence);
163 void OnUpdateOpener(int opener_routing_id); 164 void OnUpdateOpener(int opener_routing_id);
164 void OnDidStopLoading(); 165 void OnDidStopLoading();
165 void OnDidUpdateSandboxFlags(blink::WebSandboxFlags flags); 166 void OnDidUpdateSandboxFlags(blink::WebSandboxFlags flags);
166 void OnDispatchLoad(); 167 void OnDispatchLoad();
167 void OnDidUpdateName(const std::string& name, const std::string& unique_name); 168 void OnDidUpdateName(const std::string& name, const std::string& unique_name);
169 void OnAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
170 void OnResetContentSecurityPolicy();
168 void OnEnforceStrictMixedContentChecking(bool should_enforce); 171 void OnEnforceStrictMixedContentChecking(bool should_enforce);
169 void OnDidUpdateOrigin(const url::Origin& origin, 172 void OnDidUpdateOrigin(const url::Origin& origin,
170 bool is_potentially_trustworthy_unique_origin); 173 bool is_potentially_trustworthy_unique_origin);
171 void OnSetPageFocus(bool is_focused); 174 void OnSetPageFocus(bool is_focused);
172 void OnSetFocusedFrame(); 175 void OnSetFocusedFrame();
173 176
174 // The routing ID by which this RenderFrameProxy is known. 177 // The routing ID by which this RenderFrameProxy is known.
175 const int routing_id_; 178 const int routing_id_;
176 179
177 // The routing ID of the local RenderFrame (if any) which this 180 // The routing ID of the local RenderFrame (if any) which this
178 // RenderFrameProxy is meant to replace in the frame tree. 181 // RenderFrameProxy is meant to replace in the frame tree.
179 const int frame_routing_id_; 182 const int frame_routing_id_;
180 183
181 // Stores the WebRemoteFrame we are associated with. 184 // Stores the WebRemoteFrame we are associated with.
182 blink::WebRemoteFrame* web_frame_; 185 blink::WebRemoteFrame* web_frame_;
183 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; 186 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
184 187
185 RenderViewImpl* render_view_; 188 RenderViewImpl* render_view_;
186 RenderWidget* render_widget_; 189 RenderWidget* render_widget_;
187 190
188 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); 191 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy);
189 }; 192 };
190 193
191 } // namespace 194 } // namespace
192 195
193 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ 196 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698