| 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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 namespace IPC { | 10 namespace IPC { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} | 31 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} |
| 32 | 32 |
| 33 // The top-level RenderFrame began loading a new page. This corresponds to | 33 // The top-level RenderFrame began loading a new page. This corresponds to |
| 34 // Blink's notion of the throbber starting. | 34 // Blink's notion of the throbber starting. |
| 35 virtual void DidStartLoading(RenderFrameHost* render_frame_host) {} | 35 virtual void DidStartLoading(RenderFrameHost* render_frame_host) {} |
| 36 | 36 |
| 37 // The top-level RenderFrame stopped loading a page. This corresponds to | 37 // The top-level RenderFrame stopped loading a page. This corresponds to |
| 38 // Blink's notion of the throbber stopping. | 38 // Blink's notion of the throbber stopping. |
| 39 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} | 39 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} |
| 40 | 40 |
| 41 // The RenderFrameHost has been swapped out. |
| 42 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
| 43 |
| 41 // Notification that a worker process has crashed. | 44 // Notification that a worker process has crashed. |
| 42 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 45 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
| 43 | 46 |
| 44 // A context menu should be shown, to be built using the context information | 47 // A context menu should be shown, to be built using the context information |
| 45 // provided in the supplied params. | 48 // provided in the supplied params. |
| 46 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 49 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| 47 const ContextMenuParams& params) {} | 50 const ContextMenuParams& params) {} |
| 48 | 51 |
| 49 // Return this object cast to a WebContents, if it is one. If the object is | 52 // Return this object cast to a WebContents, if it is one. If the object is |
| 50 // not a WebContents, returns NULL. | 53 // not a WebContents, returns NULL. |
| 51 virtual WebContents* GetAsWebContents(); | 54 virtual WebContents* GetAsWebContents(); |
| 52 | 55 |
| 53 protected: | 56 protected: |
| 54 virtual ~RenderFrameHostDelegate() {} | 57 virtual ~RenderFrameHostDelegate() {} |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace content | 60 } // namespace content |
| 58 | 61 |
| 59 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 62 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |