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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // The top-level RenderFrame began loading a new page. This corresponds to | 48 // The top-level RenderFrame began loading a new page. This corresponds to |
49 // Blink's notion of the throbber starting. | 49 // Blink's notion of the throbber starting. |
50 // |to_different_document| will be true unless the load is a fragment | 50 // |to_different_document| will be true unless the load is a fragment |
51 // navigation, or triggered by history.pushState/replaceState. | 51 // navigation, or triggered by history.pushState/replaceState. |
52 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 52 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
53 bool to_different_document) {} | 53 bool to_different_document) {} |
54 | 54 |
55 // The RenderFrameHost has been swapped out. | 55 // The RenderFrameHost has been swapped out. |
56 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 56 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
57 | 57 |
| 58 // Notification that the navigation on the main frame is blocked waiting |
| 59 // for transition to occur. |
| 60 virtual void DidDeferAfterResponseStarted() {} |
| 61 |
58 // Notification that a worker process has crashed. | 62 // Notification that a worker process has crashed. |
59 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 63 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
60 | 64 |
61 // A context menu should be shown, to be built using the context information | 65 // A context menu should be shown, to be built using the context information |
62 // provided in the supplied params. | 66 // provided in the supplied params. |
63 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 67 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
64 const ContextMenuParams& params) {} | 68 const ContextMenuParams& params) {} |
65 | 69 |
66 // A JavaScript message, confirmation or prompt should be shown. | 70 // A JavaScript message, confirmation or prompt should be shown. |
67 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, | 71 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // not a WebContents, returns NULL. | 108 // not a WebContents, returns NULL. |
105 virtual WebContents* GetAsWebContents(); | 109 virtual WebContents* GetAsWebContents(); |
106 | 110 |
107 protected: | 111 protected: |
108 virtual ~RenderFrameHostDelegate() {} | 112 virtual ~RenderFrameHostDelegate() {} |
109 }; | 113 }; |
110 | 114 |
111 } // namespace content | 115 } // namespace content |
112 | 116 |
113 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 117 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |