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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 23
24 namespace IPC { 24 namespace IPC {
25 class Message; 25 class Message;
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 class RenderFrameHost; 29 class RenderFrameHost;
30 class WebContents; 30 class WebContents;
31 struct AXEventNotificationDetails; 31 struct AXEventNotificationDetails;
32 struct ContextMenuParams; 32 struct ContextMenuParams;
33 struct TransitionLayerData;
33 34
34 // An interface implemented by an object interested in knowing about the state 35 // An interface implemented by an object interested in knowing about the state
35 // of the RenderFrameHost. 36 // of the RenderFrameHost.
36 class CONTENT_EXPORT RenderFrameHostDelegate { 37 class CONTENT_EXPORT RenderFrameHostDelegate {
37 public: 38 public:
38 // This is used to give the delegate a chance to filter IPC messages. 39 // This is used to give the delegate a chance to filter IPC messages.
39 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 40 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
40 const IPC::Message& message); 41 const IPC::Message& message);
41 42
42 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a 43 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a
(...skipping 18 matching lines...) Expand all
61 // navigation, or triggered by history.pushState/replaceState. 62 // navigation, or triggered by history.pushState/replaceState.
62 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 63 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
63 bool to_different_document) {} 64 bool to_different_document) {}
64 65
65 // The RenderFrameHost has been swapped out. 66 // The RenderFrameHost has been swapped out.
66 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} 67 virtual void SwappedOut(RenderFrameHost* render_frame_host) {}
67 68
68 // Notification that the navigation on the main frame is blocked waiting 69 // Notification that the navigation on the main frame is blocked waiting
69 // for transition to occur. 70 // for transition to occur.
70 virtual void DidDeferAfterResponseStarted( 71 virtual void DidDeferAfterResponseStarted(
71 const scoped_refptr<net::HttpResponseHeaders>& headers, 72 const TransitionLayerData& transition_data) {}
72 const GURL& url) {}
73 73
74 // Used to query whether the navigation transition will be handled. 74 // Used to query whether the navigation transition will be handled.
75 virtual bool WillHandleDeferAfterResponseStarted(); 75 virtual bool WillHandleDeferAfterResponseStarted();
76 76
77 // Notification that a worker process has crashed. 77 // Notification that a worker process has crashed.
78 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} 78 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {}
79 79
80 // A context menu should be shown, to be built using the context information 80 // A context menu should be shown, to be built using the context information
81 // provided in the supplied params. 81 // provided in the supplied params.
82 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 82 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 142 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
143 #endif 143 #endif
144 144
145 protected: 145 protected:
146 virtual ~RenderFrameHostDelegate() {} 146 virtual ~RenderFrameHostDelegate() {}
147 }; 147 };
148 148
149 } // namespace content 149 } // namespace content
150 150
151 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 151 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698