| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class FrameTreeNode; | 46 class FrameTreeNode; |
| 47 class RenderFrameHostDelegate; | 47 class RenderFrameHostDelegate; |
| 48 class RenderFrameProxyHost; | 48 class RenderFrameProxyHost; |
| 49 class RenderProcessHost; | 49 class RenderProcessHost; |
| 50 class RenderViewHostImpl; | 50 class RenderViewHostImpl; |
| 51 class RenderWidgetHostImpl; | 51 class RenderWidgetHostImpl; |
| 52 struct ContextMenuParams; | 52 struct ContextMenuParams; |
| 53 struct GlobalRequestID; | 53 struct GlobalRequestID; |
| 54 struct Referrer; | 54 struct Referrer; |
| 55 struct ShowDesktopNotificationHostMsgParams; | 55 struct ShowDesktopNotificationHostMsgParams; |
| 56 struct TransitionLayerData; |
| 56 | 57 |
| 57 class CONTENT_EXPORT RenderFrameHostImpl | 58 class CONTENT_EXPORT RenderFrameHostImpl |
| 58 : public RenderFrameHost, | 59 : public RenderFrameHost, |
| 59 public BrowserAccessibilityDelegate { | 60 public BrowserAccessibilityDelegate { |
| 60 public: | 61 public: |
| 61 static RenderFrameHostImpl* FromID(int process_id, int routing_id); | 62 static RenderFrameHostImpl* FromID(int process_id, int routing_id); |
| 62 | 63 |
| 63 virtual ~RenderFrameHostImpl(); | 64 virtual ~RenderFrameHostImpl(); |
| 64 | 65 |
| 65 // RenderFrameHost | 66 // RenderFrameHost |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, | 148 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, |
| 148 const std::vector<GURL>& transfer_url_chain, | 149 const std::vector<GURL>& transfer_url_chain, |
| 149 const Referrer& referrer, | 150 const Referrer& referrer, |
| 150 PageTransition page_transition, | 151 PageTransition page_transition, |
| 151 bool should_replace_current_entry); | 152 bool should_replace_current_entry); |
| 152 | 153 |
| 153 // Called on the current RenderFrameHost when the network response is first | 154 // Called on the current RenderFrameHost when the network response is first |
| 154 // receieved. | 155 // receieved. |
| 155 void OnDeferredAfterResponseStarted( | 156 void OnDeferredAfterResponseStarted( |
| 156 const GlobalRequestID& global_request_id, | 157 const GlobalRequestID& global_request_id, |
| 157 const scoped_refptr<net::HttpResponseHeaders>& headers, | 158 const TransitionLayerData& transition_data); |
| 158 const GURL& url); | |
| 159 | 159 |
| 160 // Tells the renderer that this RenderFrame is being swapped out for one in a | 160 // Tells the renderer that this RenderFrame is being swapped out for one in a |
| 161 // different renderer process. It should run its unload handler, move to | 161 // different renderer process. It should run its unload handler, move to |
| 162 // a blank document and create a RenderFrameProxy to replace the RenderFrame. | 162 // a blank document and create a RenderFrameProxy to replace the RenderFrame. |
| 163 // The renderer should preserve the Proxy object until it exits, in case we | 163 // The renderer should preserve the Proxy object until it exits, in case we |
| 164 // come back. The renderer can exit if it has no other active RenderFrames, | 164 // come back. The renderer can exit if it has no other active RenderFrames, |
| 165 // but not until WasSwappedOut is called (when it is no longer visible). | 165 // but not until WasSwappedOut is called (when it is no longer visible). |
| 166 void SwapOut(RenderFrameProxyHost* proxy); | 166 void SwapOut(RenderFrameProxyHost* proxy); |
| 167 | 167 |
| 168 void OnSwappedOut(bool timed_out); | 168 void OnSwappedOut(bool timed_out); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 199 // Notifies the RenderFrame that the JavaScript message that was shown was | 199 // Notifies the RenderFrame that the JavaScript message that was shown was |
| 200 // closed by the user. | 200 // closed by the user. |
| 201 void JavaScriptDialogClosed(IPC::Message* reply_msg, | 201 void JavaScriptDialogClosed(IPC::Message* reply_msg, |
| 202 bool success, | 202 bool success, |
| 203 const base::string16& user_input, | 203 const base::string16& user_input, |
| 204 bool dialog_was_suppressed); | 204 bool dialog_was_suppressed); |
| 205 | 205 |
| 206 // Called when an HTML5 notification is closed. | 206 // Called when an HTML5 notification is closed. |
| 207 void NotificationClosed(int notification_id); | 207 void NotificationClosed(int notification_id); |
| 208 | 208 |
| 209 // Sets whether there is an outstanding transition request. This is called at | 209 // Clears any outstanding transition request. This is called when we hear the |
| 210 // the start of a provisional load for the main frame, and cleared when we | 210 // response or commit. |
| 211 // hear the response or commit. | 211 void ClearPendingTransitionRequestData(); |
| 212 void SetHasPendingTransitionRequest(bool has_pending_request); | |
| 213 | 212 |
| 214 // Send a message to the renderer process to change the accessibility mode. | 213 // Send a message to the renderer process to change the accessibility mode. |
| 215 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); | 214 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
| 216 | 215 |
| 217 // Turn on accessibility testing. The given callback will be run | 216 // Turn on accessibility testing. The given callback will be run |
| 218 // every time an accessibility notification is received from the | 217 // every time an accessibility notification is received from the |
| 219 // renderer process, and the accessibility tree it sent can be | 218 // renderer process, and the accessibility tree it sent can be |
| 220 // retrieved using GetAXTreeForTesting(). | 219 // retrieved using GetAXTreeForTesting(). |
| 221 void SetAccessibilityCallbackForTesting( | 220 void SetAccessibilityCallbackForTesting( |
| 222 const base::Callback<void(ui::AXEvent, int)>& callback); | 221 const base::Callback<void(ui::AXEvent, int)>& callback); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 388 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
| 390 // The most recently received accessibility tree - for testing only. | 389 // The most recently received accessibility tree - for testing only. |
| 391 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 390 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
| 392 | 391 |
| 393 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 392 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 394 }; | 393 }; |
| 395 | 394 |
| 396 } // namespace content | 395 } // namespace content |
| 397 | 396 |
| 398 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 397 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |