| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 blink::WebRemoteFrame* targetFrame, | 127 blink::WebRemoteFrame* targetFrame, |
| 128 blink::WebSecurityOrigin target, | 128 blink::WebSecurityOrigin target, |
| 129 blink::WebDOMMessageEvent event) override; | 129 blink::WebDOMMessageEvent event) override; |
| 130 void navigate(const blink::WebURLRequest& request, | 130 void navigate(const blink::WebURLRequest& request, |
| 131 bool should_replace_current_entry) override; | 131 bool should_replace_current_entry) override; |
| 132 void forwardInputEvent(const blink::WebInputEvent* event) override; | 132 void forwardInputEvent(const blink::WebInputEvent* event) override; |
| 133 void frameRectsChanged(const blink::WebRect& frame_rect) override; | 133 void frameRectsChanged(const blink::WebRect& frame_rect) override; |
| 134 void updateRemoteViewportIntersection( | 134 void updateRemoteViewportIntersection( |
| 135 const blink::WebRect& viewportIntersection) override; | 135 const blink::WebRect& viewportIntersection) override; |
| 136 void visibilityChanged(bool visible) override; | 136 void visibilityChanged(bool visible) override; |
| 137 void setHasReceivedUserGesture() override; | |
| 138 void didChangeOpener(blink::WebFrame* opener) override; | 137 void didChangeOpener(blink::WebFrame* opener) override; |
| 139 void advanceFocus(blink::WebFocusType type, | 138 void advanceFocus(blink::WebFocusType type, |
| 140 blink::WebLocalFrame* source) override; | 139 blink::WebLocalFrame* source) override; |
| 141 void frameFocused() override; | 140 void frameFocused() override; |
| 142 | 141 |
| 143 // IPC handlers | 142 // IPC handlers |
| 144 void OnDidStartLoading(); | 143 void OnDidStartLoading(); |
| 145 | 144 |
| 146 private: | 145 private: |
| 147 RenderFrameProxy(int routing_id, int frame_routing_id); | 146 RenderFrameProxy(int routing_id, int frame_routing_id); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 168 void OnDidUpdateName(const std::string& name, const std::string& unique_name); | 167 void OnDidUpdateName(const std::string& name, const std::string& unique_name); |
| 169 void OnAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); | 168 void OnAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); |
| 170 void OnResetContentSecurityPolicy(); | 169 void OnResetContentSecurityPolicy(); |
| 171 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); | 170 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); |
| 172 void OnSetFrameOwnerProperties(const FrameOwnerProperties& properties); | 171 void OnSetFrameOwnerProperties(const FrameOwnerProperties& properties); |
| 173 void OnDidUpdateOrigin(const url::Origin& origin, | 172 void OnDidUpdateOrigin(const url::Origin& origin, |
| 174 bool is_potentially_trustworthy_unique_origin); | 173 bool is_potentially_trustworthy_unique_origin); |
| 175 void OnSetPageFocus(bool is_focused); | 174 void OnSetPageFocus(bool is_focused); |
| 176 void OnSetFocusedFrame(); | 175 void OnSetFocusedFrame(); |
| 177 void OnWillEnterFullscreen(); | 176 void OnWillEnterFullscreen(); |
| 177 void OnSetHasReceivedUserGesture(); |
| 178 | 178 |
| 179 // The routing ID by which this RenderFrameProxy is known. | 179 // The routing ID by which this RenderFrameProxy is known. |
| 180 const int routing_id_; | 180 const int routing_id_; |
| 181 | 181 |
| 182 // The routing ID of the local RenderFrame (if any) which this | 182 // The routing ID of the local RenderFrame (if any) which this |
| 183 // RenderFrameProxy is meant to replace in the frame tree. | 183 // RenderFrameProxy is meant to replace in the frame tree. |
| 184 const int frame_routing_id_; | 184 const int frame_routing_id_; |
| 185 | 185 |
| 186 // Stores the WebRemoteFrame we are associated with. | 186 // Stores the WebRemoteFrame we are associated with. |
| 187 blink::WebRemoteFrame* web_frame_; | 187 blink::WebRemoteFrame* web_frame_; |
| 188 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 188 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
| 189 | 189 |
| 190 RenderViewImpl* render_view_; | 190 RenderViewImpl* render_view_; |
| 191 RenderWidget* render_widget_; | 191 RenderWidget* render_widget_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 193 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace | 196 } // namespace |
| 197 | 197 |
| 198 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 198 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |