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_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 // Informs the delegate whenever a RenderFrameHost is created. | 55 // Informs the delegate whenever a RenderFrameHost is created. |
56 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} | 56 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} |
57 | 57 |
58 // Informs the delegate whenever a RenderFrameHost is deleted. | 58 // Informs the delegate whenever a RenderFrameHost is deleted. |
59 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} | 59 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} |
60 | 60 |
61 // The RenderFrameHost has been swapped out. | 61 // The RenderFrameHost has been swapped out. |
62 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 62 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
63 | 63 |
64 // Notification that the navigation on the main frame is blocked waiting | |
65 // for transition to occur. | |
66 virtual void DidDeferAfterResponseStarted( | |
67 const TransitionLayerData& transition_data) {} | |
68 | |
69 // Used to query whether the navigation transition will be handled. | |
70 virtual bool WillHandleDeferAfterResponseStarted(); | |
71 | |
72 // Notification that a worker process has crashed. | 64 // Notification that a worker process has crashed. |
73 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 65 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
74 | 66 |
75 // A context menu should be shown, to be built using the context information | 67 // A context menu should be shown, to be built using the context information |
76 // provided in the supplied params. | 68 // provided in the supplied params. |
77 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 69 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
78 const ContextMenuParams& params) {} | 70 const ContextMenuParams& params) {} |
79 | 71 |
80 // A JavaScript message, confirmation or prompt should be shown. | 72 // A JavaScript message, confirmation or prompt should be shown. |
81 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, | 73 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 175 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
184 #endif | 176 #endif |
185 | 177 |
186 protected: | 178 protected: |
187 virtual ~RenderFrameHostDelegate() {} | 179 virtual ~RenderFrameHostDelegate() {} |
188 }; | 180 }; |
189 | 181 |
190 } // namespace content | 182 } // namespace content |
191 | 183 |
192 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 184 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |