| 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 "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/common/javascript_message_type.h" | 10 #include "content/public/common/javascript_message_type.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 const base::string16& message, | 37 const base::string16& message, |
| 38 int32 line_no, | 38 int32 line_no, |
| 39 const base::string16& source_id); | 39 const base::string16& source_id); |
| 40 | 40 |
| 41 // Informs the delegate whenever a RenderFrameHost is created. | 41 // Informs the delegate whenever a RenderFrameHost is created. |
| 42 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} | 42 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} |
| 43 | 43 |
| 44 // Informs the delegate whenever a RenderFrameHost is deleted. | 44 // Informs the delegate whenever a RenderFrameHost is deleted. |
| 45 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} | 45 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} |
| 46 | 46 |
| 47 // The top-level RenderFrame began loading a new page. This corresponds to | |
| 48 // Blink's notion of the throbber starting. | |
| 49 // |to_different_document| will be true unless the load is a fragment | |
| 50 // navigation, or triggered by history.pushState/replaceState. | |
| 51 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | |
| 52 bool to_different_document) {} | |
| 53 | |
| 54 // The top-level RenderFrame stopped loading a page. This corresponds to | |
| 55 // Blink's notion of the throbber stopping. | |
| 56 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} | |
| 57 | |
| 58 // The RenderFrameHost has been swapped out. | 47 // The RenderFrameHost has been swapped out. |
| 59 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 48 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
| 60 | 49 |
| 61 // Notification that a worker process has crashed. | 50 // Notification that a worker process has crashed. |
| 62 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 51 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
| 63 | 52 |
| 64 // A context menu should be shown, to be built using the context information | 53 // A context menu should be shown, to be built using the context information |
| 65 // provided in the supplied params. | 54 // provided in the supplied params. |
| 66 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 55 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| 67 const ContextMenuParams& params) {} | 56 const ContextMenuParams& params) {} |
| (...skipping 23 matching lines...) Expand all Loading... |
| 91 // not a WebContents, returns NULL. | 80 // not a WebContents, returns NULL. |
| 92 virtual WebContents* GetAsWebContents(); | 81 virtual WebContents* GetAsWebContents(); |
| 93 | 82 |
| 94 protected: | 83 protected: |
| 95 virtual ~RenderFrameHostDelegate() {} | 84 virtual ~RenderFrameHostDelegate() {} |
| 96 }; | 85 }; |
| 97 | 86 |
| 98 } // namespace content | 87 } // namespace content |
| 99 | 88 |
| 100 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 89 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |