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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 435833002: Navigation transitions: Plumb data from the outgoing renderer to the incoming renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Testfix Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; 384 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_;
386 // The most recently received accessibility tree - for testing only. 385 // The most recently received accessibility tree - for testing only.
387 scoped_ptr<ui::AXTree> ax_tree_for_testing_; 386 scoped_ptr<ui::AXTree> ax_tree_for_testing_;
388 387
389 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 388 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
390 }; 389 };
391 390
392 } // namespace content 391 } // namespace content
393 392
394 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 393 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698