| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 struct SurfaceSequence; | 29 struct SurfaceSequence; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 | 33 |
| 34 class ChildFrameCompositingHelper; | 34 class ChildFrameCompositingHelper; |
| 35 class RenderFrameImpl; | 35 class RenderFrameImpl; |
| 36 class RenderViewImpl; | 36 class RenderViewImpl; |
| 37 class RenderWidget; | 37 class RenderWidget; |
| 38 struct ContentSecurityPolicyHeader; | 38 struct ContentSecurityPolicyHeader; |
| 39 struct FrameOwnerProperties; |
| 39 struct FrameReplicationState; | 40 struct FrameReplicationState; |
| 40 | 41 |
| 41 // When a page's frames are rendered by multiple processes, each renderer has a | 42 // When a page's frames are rendered by multiple processes, each renderer has a |
| 42 // full copy of the frame tree. It has full RenderFrames for the frames it is | 43 // full copy of the frame tree. It has full RenderFrames for the frames it is |
| 43 // responsible for rendering and placeholder objects for frames rendered by | 44 // responsible for rendering and placeholder objects for frames rendered by |
| 44 // other processes. This class is the renderer-side object for the placeholder. | 45 // other processes. This class is the renderer-side object for the placeholder. |
| 45 // RenderFrameProxy allows us to keep existing window references valid over | 46 // RenderFrameProxy allows us to keep existing window references valid over |
| 46 // cross-process navigations and route cross-site asynchronous JavaScript calls, | 47 // cross-process navigations and route cross-site asynchronous JavaScript calls, |
| 47 // such as postMessage. | 48 // such as postMessage. |
| 48 // | 49 // |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 float scale_factor, | 164 float scale_factor, |
| 164 const cc::SurfaceSequence& sequence); | 165 const cc::SurfaceSequence& sequence); |
| 165 void OnUpdateOpener(int opener_routing_id); | 166 void OnUpdateOpener(int opener_routing_id); |
| 166 void OnDidStopLoading(); | 167 void OnDidStopLoading(); |
| 167 void OnDidUpdateSandboxFlags(blink::WebSandboxFlags flags); | 168 void OnDidUpdateSandboxFlags(blink::WebSandboxFlags flags); |
| 168 void OnDispatchLoad(); | 169 void OnDispatchLoad(); |
| 169 void OnDidUpdateName(const std::string& name, const std::string& unique_name); | 170 void OnDidUpdateName(const std::string& name, const std::string& unique_name); |
| 170 void OnAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); | 171 void OnAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); |
| 171 void OnResetContentSecurityPolicy(); | 172 void OnResetContentSecurityPolicy(); |
| 172 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); | 173 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); |
| 173 void OnSetFrameOwnerProperties( | 174 void OnSetFrameOwnerProperties(const FrameOwnerProperties& properties); |
| 174 const blink::WebFrameOwnerProperties& properties); | |
| 175 void OnDidUpdateOrigin(const url::Origin& origin, | 175 void OnDidUpdateOrigin(const url::Origin& origin, |
| 176 bool is_potentially_trustworthy_unique_origin); | 176 bool is_potentially_trustworthy_unique_origin); |
| 177 void OnSetPageFocus(bool is_focused); | 177 void OnSetPageFocus(bool is_focused); |
| 178 void OnSetFocusedFrame(); | 178 void OnSetFocusedFrame(); |
| 179 void OnWillEnterFullscreen(); | 179 void OnWillEnterFullscreen(); |
| 180 | 180 |
| 181 // The routing ID by which this RenderFrameProxy is known. | 181 // The routing ID by which this RenderFrameProxy is known. |
| 182 const int routing_id_; | 182 const int routing_id_; |
| 183 | 183 |
| 184 // The routing ID of the local RenderFrame (if any) which this | 184 // The routing ID of the local RenderFrame (if any) which this |
| 185 // RenderFrameProxy is meant to replace in the frame tree. | 185 // RenderFrameProxy is meant to replace in the frame tree. |
| 186 const int frame_routing_id_; | 186 const int frame_routing_id_; |
| 187 | 187 |
| 188 // Stores the WebRemoteFrame we are associated with. | 188 // Stores the WebRemoteFrame we are associated with. |
| 189 blink::WebRemoteFrame* web_frame_; | 189 blink::WebRemoteFrame* web_frame_; |
| 190 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 190 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
| 191 | 191 |
| 192 RenderViewImpl* render_view_; | 192 RenderViewImpl* render_view_; |
| 193 RenderWidget* render_widget_; | 193 RenderWidget* render_widget_; |
| 194 | 194 |
| 195 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 195 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace | 198 } // namespace |
| 199 | 199 |
| 200 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 200 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |