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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 // Informs the delegate whenever a RenderFrameHost is deleted. | 57 // Informs the delegate whenever a RenderFrameHost is deleted. |
58 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} | 58 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} |
59 | 59 |
60 // The top-level RenderFrame began loading a new page. This corresponds to | 60 // The top-level RenderFrame began loading a new page. This corresponds to |
61 // Blink's notion of the throbber starting. | 61 // Blink's notion of the throbber starting. |
62 // |to_different_document| will be true unless the load is a fragment | 62 // |to_different_document| will be true unless the load is a fragment |
63 // navigation, or triggered by history.pushState/replaceState. | 63 // navigation, or triggered by history.pushState/replaceState. |
64 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 64 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
65 bool to_different_document) {} | 65 bool to_different_document) {} |
66 | 66 |
67 // The top-level RenderFrame stopped loading a page. This corresponds to | |
nasko
2014/12/09 18:13:33
Is this going to be only for top-level frames? I d
Avi (use Gerrit)
2014/12/09 20:45:27
No, but the comment was stolen from DidStartLoadin
| |
68 // Blink's notion of the throbber stopping. | |
69 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} | |
70 | |
67 // The RenderFrameHost has been swapped out. | 71 // The RenderFrameHost has been swapped out. |
68 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 72 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
69 | 73 |
70 // Notification that the navigation on the main frame is blocked waiting | 74 // Notification that the navigation on the main frame is blocked waiting |
71 // for transition to occur. | 75 // for transition to occur. |
72 virtual void DidDeferAfterResponseStarted( | 76 virtual void DidDeferAfterResponseStarted( |
73 const TransitionLayerData& transition_data) {} | 77 const TransitionLayerData& transition_data) {} |
74 | 78 |
75 // Used to query whether the navigation transition will be handled. | 79 // Used to query whether the navigation transition will be handled. |
76 virtual bool WillHandleDeferAfterResponseStarted(); | 80 virtual bool WillHandleDeferAfterResponseStarted(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 160 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
157 #endif | 161 #endif |
158 | 162 |
159 protected: | 163 protected: |
160 virtual ~RenderFrameHostDelegate() {} | 164 virtual ~RenderFrameHostDelegate() {} |
161 }; | 165 }; |
162 | 166 |
163 } // namespace content | 167 } // namespace content |
164 | 168 |
165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 169 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |