| 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 14 matching lines...) Expand all Loading... |
| 25 const IPC::Message& message); | 25 const IPC::Message& message); |
| 26 | 26 |
| 27 // Informs the delegate whenever a RenderFrameHost is created. | 27 // Informs the delegate whenever a RenderFrameHost is created. |
| 28 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} | 28 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} |
| 29 | 29 |
| 30 // Informs the delegate whenever a RenderFrameHost is deleted. | 30 // Informs the delegate whenever a RenderFrameHost is deleted. |
| 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 bool to_different_document) {} |
| 36 | 37 |
| 37 // The top-level RenderFrame stopped loading a page. This corresponds to | 38 // The top-level RenderFrame stopped loading a page. This corresponds to |
| 38 // Blink's notion of the throbber stopping. | 39 // Blink's notion of the throbber stopping. |
| 39 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} | 40 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} |
| 40 | 41 |
| 41 // Notification that a worker process has crashed. | 42 // Notification that a worker process has crashed. |
| 42 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 43 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
| 43 | 44 |
| 44 // A context menu should be shown, to be built using the context information | 45 // A context menu should be shown, to be built using the context information |
| 45 // provided in the supplied params. | 46 // provided in the supplied params. |
| 46 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 47 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| 47 const ContextMenuParams& params) {} | 48 const ContextMenuParams& params) {} |
| 48 | 49 |
| 49 // Return this object cast to a WebContents, if it is one. If the object is | 50 // Return this object cast to a WebContents, if it is one. If the object is |
| 50 // not a WebContents, returns NULL. | 51 // not a WebContents, returns NULL. |
| 51 virtual WebContents* GetAsWebContents(); | 52 virtual WebContents* GetAsWebContents(); |
| 52 | 53 |
| 53 protected: | 54 protected: |
| 54 virtual ~RenderFrameHostDelegate() {} | 55 virtual ~RenderFrameHostDelegate() {} |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace content | 58 } // namespace content |
| 58 | 59 |
| 59 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 60 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |